summaryrefslogtreecommitdiff
path: root/srcx
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2004-05-19 18:12:36 +0000
committerStef Walter <stef@memberwebs.com>2004-05-19 18:12:36 +0000
commited70112338ce2d85b3f38e14aef976da2fba4cdd (patch)
tree60164f9b4f13d1ca015236a14a3685347417027e /srcx
parent39f8d8a2c669824b38d92bfda7c28d6ae18ff2a8 (diff)
Bug fixes for jkill argument handling
Diffstat (limited to 'srcx')
-rw-r--r--srcx/jkill.c6
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();
}