summaryrefslogtreecommitdiffstats
path: root/src/shared/exec-util.h
diff options
context:
space:
mode:
authorMike Yuan <me@yhndnzj.com>2024-07-10 22:23:37 +0200
committerMike Yuan <me@yhndnzj.com>2024-07-20 09:37:07 +0200
commit05c754bc7fe14e71721af6eb16194b9ad0690fb5 (patch)
tree4f21621dad7bc56fc7b6a4b376530375777a4151 /src/shared/exec-util.h
parentzsh: update varlinkctl completions (diff)
downloadsystemd-05c754bc7fe14e71721af6eb16194b9ad0690fb5.tar.xz
systemd-05c754bc7fe14e71721af6eb16194b9ad0690fb5.zip
exec-util: modernize exec_command_flags_{to,from}_strv
- Rename ret params following our coding style - Use assertion where appropriate - Use BIT_FOREACH()
Diffstat (limited to 'src/shared/exec-util.h')
-rw-r--r--src/shared/exec-util.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/exec-util.h b/src/shared/exec-util.h
index b99336ee3b..6c2d6b19cd 100644
--- a/src/shared/exec-util.h
+++ b/src/shared/exec-util.h
@@ -51,8 +51,8 @@ int execute_directories(
char *envp[],
ExecDirFlags flags);
-int exec_command_flags_from_strv(char **ex_opts, ExecCommandFlags *flags);
-int exec_command_flags_to_strv(ExecCommandFlags flags, char ***ex_opts);
+int exec_command_flags_from_strv(char * const *ex_opts, ExecCommandFlags *ret);
+int exec_command_flags_to_strv(ExecCommandFlags flags, char ***ret);
extern const gather_stdout_callback_t gather_environment[_STDOUT_CONSUME_MAX];