kill: remove unnecessary indirection

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
Sami Kerola 2014-04-07 22:41:00 +01:00
parent fe6b5e321f
commit 3665b07cd8

View file

@ -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;
}