From: Christian Brauner Date: Sat, 20 Oct 2018 09:49:47 +0000 (+0200) Subject: cmd/lxc_init: do not hide global variable X-Git-Tag: lxc-3.1.0~29^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c837120231c1c9fa4b54ea0d72e6c00dfbf97f0d;p=thirdparty%2Flxc.git cmd/lxc_init: do not hide global variable Signed-off-by: Christian Brauner --- diff --git a/src/lxc/cmd/lxc_init.c b/src/lxc/cmd/lxc_init.c index d50868a13..e7daa7863 100644 --- a/src/lxc/cmd/lxc_init.c +++ b/src/lxc/cmd/lxc_init.c @@ -182,17 +182,17 @@ static void kill_children(pid_t pid) } while (!feof(f)) { - pid_t pid; + pid_t find_pid; - if (fscanf(f, "%d ", &pid) != 1) { + if (fscanf(f, "%d ", &find_pid) != 1) { if (my_args.quiet) fprintf(stderr, "Failed to retrieve pid\n"); fclose(f); return; } - kill_children(pid); - kill(pid, SIGKILL); + (void)kill_children(find_pid); + (void)kill(find_pid, SIGKILL); } fclose(f);