diff options
author | Lennart Poettering <lennart@poettering.net> | 2023-06-26 17:10:28 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2023-06-27 13:49:46 +0200 |
commit | d5ce24c99ea31a6d787b8e3ac92438cc1e2a27f0 (patch) | |
tree | d21cb7fb500aa0c661008fdbf6984adc418161ee /src/basic/env-util.c | |
parent | env-util: add explicit size check before strndupa() in strv_env_get_n() (diff) | |
download | systemd-d5ce24c99ea31a6d787b8e3ac92438cc1e2a27f0.tar.xz systemd-d5ce24c99ea31a6d787b8e3ac92438cc1e2a27f0.zip |
env-util: introduce proper flags type ReplaceEnvFlags for replace_env()
Diffstat (limited to 'src/basic/env-util.c')
-rw-r--r-- | src/basic/env-util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/basic/env-util.c b/src/basic/env-util.c index 8cc7b72511..f3b76d6ba2 100644 --- a/src/basic/env-util.c +++ b/src/basic/env-util.c @@ -500,7 +500,7 @@ int _strv_env_assign_many(char ***l, ...) { return 0; } -char *strv_env_get_n(char **l, const char *name, size_t k, unsigned flags) { +char *strv_env_get_n(char **l, const char *name, size_t k, ReplaceEnvFlags flags) { assert(name); if (k <= 0) @@ -578,7 +578,7 @@ char **strv_env_clean_with_callback(char **e, void (*invalid_callback)(const cha return e; } -char *replace_env_n(const char *format, size_t n, char **env, unsigned flags) { +char *replace_env_n(const char *format, size_t n, char **env, ReplaceEnvFlags flags) { enum { WORD, CURLY, |