1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-11-06 08:49:29 +02:00

Rename hrnCfgEnvId*() to hrnCfgEnvKey*().

The hrnCfg*() functions were renamed before commit but these got missed.
This commit is contained in:
David Steele
2020-11-17 10:48:40 -05:00
parent dd708e6d27
commit 62d9f23961
2 changed files with 10 additions and 10 deletions

View File

@@ -177,23 +177,23 @@ hrnCfgArgKeyRawReset(StringList *argList, ConfigOption optionId, unsigned option
void
hrnCfgEnvRaw(ConfigOption optionId, const String *value)
{
hrnCfgEnvIdRawZ(optionId, 1, strZ(value));
hrnCfgEnvKeyRawZ(optionId, 1, strZ(value));
}
void
hrnCfgEnvIdRaw(ConfigOption optionId, unsigned optionKey, const String *value)
hrnCfgEnvKeyRaw(ConfigOption optionId, unsigned optionKey, const String *value)
{
hrnCfgEnvIdRawZ(optionId, optionKey, strZ(value));
hrnCfgEnvKeyRawZ(optionId, optionKey, strZ(value));
}
void
hrnCfgEnvRawZ(ConfigOption optionId, const char *value)
{
hrnCfgEnvIdRawZ(optionId, 1, value);
hrnCfgEnvKeyRawZ(optionId, 1, value);
}
void
hrnCfgEnvIdRawZ(ConfigOption optionId, unsigned optionKey, const char *value)
hrnCfgEnvKeyRawZ(ConfigOption optionId, unsigned optionKey, const char *value)
{
setenv(strZ(strNewFmt(HRN_PGBACKREST_ENV "%s", cfgOptionName(optionId + optionKey - 1))), value, true);
}
@@ -201,11 +201,11 @@ hrnCfgEnvIdRawZ(ConfigOption optionId, unsigned optionKey, const char *value)
void
hrnCfgEnvRemoveRaw(ConfigOption optionId)
{
hrnCfgEnvIdRemoveRaw(optionId, 1);
hrnCfgEnvKeyRemoveRaw(optionId, 1);
}
void
hrnCfgEnvIdRemoveRaw(ConfigOption optionId, unsigned optionKey)
hrnCfgEnvKeyRemoveRaw(ConfigOption optionId, unsigned optionKey)
{
unsetenv(strZ(strNewFmt(HRN_PGBACKREST_ENV "%s", cfgOptionName(optionId + optionKey - 1))));
}

View File

@@ -54,10 +54,10 @@ Environment helper functions
Add and remove environment options, which are required to pass secrets, e.g. repo1-cipher-pass.
***********************************************************************************************************************************/
void hrnCfgEnvRaw(ConfigOption optionId, const String *value);
void hrnCfgEnvIdRaw(ConfigOption optionId, unsigned optionKey, const String *value);
void hrnCfgEnvKeyRaw(ConfigOption optionId, unsigned optionKey, const String *value);
void hrnCfgEnvRawZ(ConfigOption optionId, const char *value);
void hrnCfgEnvIdRawZ(ConfigOption optionId, unsigned optionKey, const char *value);
void hrnCfgEnvKeyRawZ(ConfigOption optionId, unsigned optionKey, const char *value);
void hrnCfgEnvRemoveRaw(ConfigOption optionId);
void hrnCfgEnvIdRemoveRaw(ConfigOption optionId, unsigned optionKey);
void hrnCfgEnvKeyRemoveRaw(ConfigOption optionId, unsigned optionKey);