summaryrefslogtreecommitdiff
path: root/source3/rpcclient/cmd_eventlog.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_eventlog.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_eventlog.c')
-rw-r--r--source3/rpcclient/cmd_eventlog.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/source3/rpcclient/cmd_eventlog.c b/source3/rpcclient/cmd_eventlog.c
index c836564007..2a18645196 100644
--- a/source3/rpcclient/cmd_eventlog.c
+++ b/source3/rpcclient/cmd_eventlog.c
@@ -50,14 +50,13 @@ void cmd_eventlog(struct client_info *info, int argc, char *argv[])
uint32 num_of_bytes;
EVENTLOGRECORD ev;
- fstring journal;
- fstring temp;
+ char *journal = NULL;
flags=EVENTLOG_READ_SEQUENTIAL|EVENTLOG_READ_BACKWARD;
- while (next_token(NULL, temp, NULL, sizeof(temp)))
+ if (argc > 1)
{
- fstrcpy(journal, temp);
+ journal = argv[1];
}
/* open scheduler session. */