diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2020-11-29 19:27:19 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2020-11-29 19:27:19 +0000 |
commit | 360b550f62ed5d6e422d7f028f126c32a715bf21 (patch) | |
tree | 6ae1b2c6076a0cc999b90eccff9d965df1efff7a /src/alias/s6-frontend-alias-chpst.c | |
parent | cb0a6af925ca308844fe164d40107b7423cfaf46 (diff) | |
download | s6-frontend-360b550f62ed5d6e422d7f028f126c32a715bf21.tar.gz s6-frontend-360b550f62ed5d6e422d7f028f126c32a715bf21.tar.xz s6-frontend-360b550f62ed5d6e422d7f028f126c32a715bf21.zip |
Adapt to new skalibs/exec.h
Diffstat (limited to 'src/alias/s6-frontend-alias-chpst.c')
-rw-r--r-- | src/alias/s6-frontend-alias-chpst.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/alias/s6-frontend-alias-chpst.c b/src/alias/s6-frontend-alias-chpst.c index d57ca88..05b3b07 100644 --- a/src/alias/s6-frontend-alias-chpst.c +++ b/src/alias/s6-frontend-alias-chpst.c @@ -14,7 +14,7 @@ #include <skalibs/sgetopt.h> #include <skalibs/buffer.h> #include <skalibs/strerr2.h> -#include <skalibs/djbunix.h> +#include <skalibs/exec.h> #include <execline/config.h> @@ -135,7 +135,7 @@ static inline size_t parseuggsym (char const *s, uint32_t *flags, uid_t *uid, gi return n ; } -int main (int argc, char const *const *argv, char const *const *envp) +int main (int argc, char const *const *argv) { static char const *valopt[6] = { "-m", "-d", "-o", "-p", "-f", "-c" } ; unsigned int newargc = 0 ; @@ -339,6 +339,6 @@ int main (int argc, char const *const *argv, char const *const *envp) for (int i = 0 ; i < argc+1 ; i++) newargv[m++] = argv[i] ; if (verbosity) printit(newargv) ; - xpathexec0_run(newargv, envp) ; + xexec0(newargv) ; } } |