From 3d4b2c8b5e258ffba5a5c9bf49796e9750013020 Mon Sep 17 00:00:00 2001 From: Luke Leighton Date: Wed, 18 Aug 1999 20:11:29 +0000 Subject: event log update (This used to be commit bcc1212b07c71256fad93d82a996fa86b27db250) --- source3/rpcclient/cmd_eventlog.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'source3/rpcclient') diff --git a/source3/rpcclient/cmd_eventlog.c b/source3/rpcclient/cmd_eventlog.c index e6e10c44eb..e3179ee043 100644 --- a/source3/rpcclient/cmd_eventlog.c +++ b/source3/rpcclient/cmd_eventlog.c @@ -41,9 +41,10 @@ extern FILE* out_hnd; void cmd_eventlog(struct client_info *info) { uint16 nt_pipe_fnum; - BOOL res = True; + BOOL res = True; + BOOL res1 = True; POLICY_HND hnd; - uint32 number; + uint32 number = 0; uint32 flags; uint32 offset; uint32 num_of_bytes; @@ -60,17 +61,17 @@ void cmd_eventlog(struct client_info *info) } /* open scheduler session. */ - res = res ? cli_nt_session_open(smb_cli, PIPE_EVENTLOG, &nt_pipe_fnum) : False; + res1 = res1 ? cli_nt_session_open(smb_cli, PIPE_EVENTLOG, &nt_pipe_fnum) : False; - res = res ? do_event_open(smb_cli, nt_pipe_fnum, journal, &hnd) : False; + res1 = res1 ? do_event_open(smb_cli, nt_pipe_fnum, journal, &hnd) : False; - res = res ? do_event_numofeventlogrec(smb_cli, nt_pipe_fnum, &hnd, &number) : False; + res = res1 ? do_event_numofeventlogrec(smb_cli, nt_pipe_fnum, &hnd, &number) : False; fprintf(out_hnd, "Number of events: %d\n", number); display_eventlog_eventrecord(out_hnd, ACTION_HEADER, &ev); - for (offset=0; offset