aboutsummaryrefslogtreecommitdiffstats
path: root/libexec_setenvf.c
diff options
context:
space:
mode:
Diffstat (limited to 'libexec_setenvf.c')
-rw-r--r--libexec_setenvf.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/libexec_setenvf.c b/libexec_setenvf.c
index 7589dca..d7af3f8 100644
--- a/libexec_setenvf.c
+++ b/libexec_setenvf.c
@@ -3,16 +3,7 @@
#ifndef TEST
-int
-libexec_setenvf(struct libexec_command *cmd, enum libexec_insert_mode how, const char *name, const char *value_fmt, ...)
-{
- int ret;
- va_list args;
- va_start(args, value_fmt);
- ret = libexec_vsetenvf(cmd, how, name, value_fmt, args);
- va_end(args);
- return ret;
-}
+extern inline int libexec_setenvf(struct libexec_command *, enum libexec_insert_mode, const char *, const char *, ...);
#else
@@ -30,7 +21,7 @@ main(void)
struct libexec_command cmd, ref;
- libexec_init_command(&cmd);
+ cmd = LIBEXEC_COMMAND_INIT;
memcpy(&ref, &cmd, sizeof(cmd));
errno = 0;