diff options
author | Sami Kerola | 2014-04-07 23:41:00 +0200 |
---|---|---|
committer | Sami Kerola | 2014-04-26 19:36:40 +0200 |
commit | 3665b07cd8b7edf8c85d9b739ed1b496932de851 (patch) | |
tree | 465c81c53e91014b25c6ce6388ddefeab1a09065 /misc-utils/kill.c | |
parent | kill: make options --pid and --queue mutually exclusive (diff) | |
download | kernel-qcow2-util-linux-3665b07cd8b7edf8c85d9b739ed1b496932de851.tar.gz kernel-qcow2-util-linux-3665b07cd8b7edf8c85d9b739ed1b496932de851.tar.xz kernel-qcow2-util-linux-3665b07cd8b7edf8c85d9b739ed1b496932de851.zip |
kill: remove unnecessary indirection
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'misc-utils/kill.c')
-rw-r--r-- | misc-utils/kill.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/misc-utils/kill.c b/misc-utils/kill.c index e67866187..9566f1458 100644 --- a/misc-utils/kill.c +++ b/misc-utils/kill.c @@ -434,8 +434,6 @@ static char **parse_arguments(int argc, char **argv, struct kill_control *ctl) } if (!*argv) errx(EXIT_FAILURE, _("not enough arguments")); - if (ctl->do_pid) - ctl->numsig = -1; return argv; } @@ -444,7 +442,7 @@ static int kill_verbose(const struct kill_control *ctl) { int rc = 0; - if (ctl->numsig < 0) { + if (ctl->do_pid) { printf("%ld\n", (long) ctl->pid); return 0; } |