summaryrefslogtreecommitdiff
path: root/source3/rpcclient/cmd_brs.c
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1999-11-22 19:46:26 +0000
committerLuke Leighton <lkcl@samba.org>1999-11-22 19:46:26 +0000
commit1ed8653112f8b26cb107e2c1e872565675ba1465 (patch)
treec8ed0f37b5a83aa59a5f2d24ba12adee1a21f465 /source3/rpcclient/cmd_brs.c
parent288a5059a24b1b28bef1c28bc831c775977c5876 (diff)
downloadsamba-1ed8653112f8b26cb107e2c1e872565675ba1465.tar.gz
samba-1ed8653112f8b26cb107e2c1e872565675ba1465.tar.bz2
samba-1ed8653112f8b26cb107e2c1e872565675ba1465.zip
another four next_token() removals (using getopt instead)
(This used to be commit 3e76ca9b172e1a6886e714d6a36453f30ff3e771)
Diffstat (limited to 'source3/rpcclient/cmd_brs.c')
-rw-r--r--source3/rpcclient/cmd_brs.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source3/rpcclient/cmd_brs.c b/source3/rpcclient/cmd_brs.c
index 428a5c93ba..ff8e1cf66a 100644
--- a/source3/rpcclient/cmd_brs.c
+++ b/source3/rpcclient/cmd_brs.c
@@ -45,7 +45,6 @@ void cmd_brs_query_info(struct client_info *info, int argc, char *argv[])
{
uint16 nt_pipe_fnum;
fstring dest_brs;
- fstring tmp;
BRS_INFO_100 ctr;
uint32 info_level = 100;
@@ -57,9 +56,9 @@ void cmd_brs_query_info(struct client_info *info, int argc, char *argv[])
fstrcat(dest_brs, info->dest_host);
strupper(dest_brs);
- 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_brs_query_info: server:%s info level: %d\n",