From ed70112338ce2d85b3f38e14aef976da2fba4cdd Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Wed, 19 May 2004 18:12:36 +0000 Subject: Bug fixes for jkill argument handling --- srcx/jkill.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'srcx') diff --git a/srcx/jkill.c b/srcx/jkill.c index dae91d7..06854c5 100644 --- a/srcx/jkill.c +++ b/srcx/jkill.c @@ -116,7 +116,7 @@ int main(int argc, char* argv[]) else { - parse_host_opts(argc, argv, 1); + parse_host_opts(argc, argv); argc -= optind; argv += optind; @@ -274,7 +274,7 @@ static void parse_jail_opts(int argc, char* argv[]) } } -static void parse_host_opts(int argc, char* argv[], int namereq) +static void parse_host_opts(int argc, char* argv[]) { int ch; @@ -329,7 +329,7 @@ static void parse_host_opts(int argc, char* argv[], int namereq) argc -= optind; argv += optind; - if(namereq && argc <= 0) + if(argc <= 0) usage(); } -- cgit v1.2.3