diff options
author | Stef Walter <stef@memberwebs.com> | 2004-05-19 18:12:36 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2004-05-19 18:12:36 +0000 |
commit | ed70112338ce2d85b3f38e14aef976da2fba4cdd (patch) | |
tree | 60164f9b4f13d1ca015236a14a3685347417027e | |
parent | 39f8d8a2c669824b38d92bfda7c28d6ae18ff2a8 (diff) |
Bug fixes for jkill argument handling
-rw-r--r-- | srcx/jkill.c | 6 |
1 files changed, 3 insertions, 3 deletions
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(); } |