From: Etienne CHAMPETIER Date: Fri, 27 Nov 2015 16:27:01 +0000 (+0000) Subject: ujail: don't pass unused arg in clone call X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f35fa23a126505a726a9f09be01cd351a08e2532;p=oweals%2Fprocd.git ujail: don't pass unused arg in clone call clone() call need a function with "void *" arg (else we have a compilation error) Signed-off-by: Etienne CHAMPETIER --- diff --git a/jail/jail.c b/jail/jail.c index 56dc9ca..9952ed9 100644 --- a/jail/jail.c +++ b/jail/jail.c @@ -272,7 +272,7 @@ static int exec_jail() exit(EXIT_FAILURE); } -static int spawn_jail(void *arg) +static int spawn_jail(void *_notused) { if (opts.name && sethostname(opts.name, strlen(opts.name))) { ERROR("failed to sethostname: %s\n", strerror(errno)); @@ -424,7 +424,7 @@ int main(int argc, char **argv) if (opts.namespace) { jail_process.pid = clone(spawn_jail, child_stack + STACK_SIZE, - CLONE_NEWUTS | CLONE_NEWPID | CLONE_NEWNS | CLONE_NEWIPC | SIGCHLD, argv); + CLONE_NEWUTS | CLONE_NEWPID | CLONE_NEWNS | CLONE_NEWIPC | SIGCHLD, NULL); } else { jail_process.pid = fork(); }