From 48a4df7dac6e076bee0a1de9540108676792377b Mon Sep 17 00:00:00 2001 From: Luke Leighton Date: Mon, 22 Nov 1999 19:25:30 +0000 Subject: moved two more commands over to getopt. (This used to be commit de360d1e908b4e2e77cd028b19f3ccd07903a4dd) --- source3/rpcclient/cmd_wkssvc.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'source3/rpcclient/cmd_wkssvc.c') diff --git a/source3/rpcclient/cmd_wkssvc.c b/source3/rpcclient/cmd_wkssvc.c index 426e6690a0..23f7a88d27 100644 --- a/source3/rpcclient/cmd_wkssvc.c +++ b/source3/rpcclient/cmd_wkssvc.c @@ -45,7 +45,6 @@ void cmd_wks_query_info(struct client_info *info, int argc, char *argv[]) { uint16 nt_pipe_fnum; fstring dest_wks; - fstring tmp; WKS_INFO_100 ctr; uint32 info_level = 100; @@ -57,9 +56,9 @@ void cmd_wks_query_info(struct client_info *info, int argc, char *argv[]) fstrcat(dest_wks, info->dest_host); strupper(dest_wks); - if (next_token(NULL, tmp, NULL, sizeof(tmp))) + if (argc > 1) { - info_level = (uint32)strtol(tmp, (char**)NULL, 10); + info_level = (uint32)strtol(argv[1], (char**)NULL, 10); } DEBUG(4,("cmd_wks_query_info: server:%s info level: %d\n", -- cgit