summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-06-28 21:56:03 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:19:06 -0500
commitc7d2deb151b22f1b84213470a53ab43c42e6646a (patch)
tree62bdd16e97b8e5614d86829f1956dfce1f8dcc67 /source3
parent3c9a5c7b5821e484b6057c9fdcab3210cc20733b (diff)
downloadsamba-c7d2deb151b22f1b84213470a53ab43c42e6646a.tar.gz
samba-c7d2deb151b22f1b84213470a53ab43c42e6646a.tar.bz2
samba-c7d2deb151b22f1b84213470a53ab43c42e6646a.zip
r16656: Fix #3894 and #3895 reported by jason@ncac.gwu.edu.
Jeremy. (This used to be commit ddf35ad69201cf9a0aa45ff25e17eddef60d75ad)
Diffstat (limited to 'source3')
-rw-r--r--source3/utils/eventlogadm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/utils/eventlogadm.c b/source3/utils/eventlogadm.c
index 3a1a56cf3a..036ce3ad4b 100644
--- a/source3/utils/eventlogadm.c
+++ b/source3/utils/eventlogadm.c
@@ -89,7 +89,7 @@ int DoWriteCommand( int argc, char **argv, BOOL debugflag, char *exename )
pstring linein;
BOOL is_eor;
Eventlog_entry ee;
- int pret, rcnum;
+ int rcnum;
f1 = stdin;
if ( !f1 ) {
@@ -121,7 +121,7 @@ int DoWriteCommand( int argc, char **argv, BOOL debugflag, char *exename )
is_eor = False;
- pret = parse_logentry( ( char * ) &linein, &ee, &is_eor );
+ parse_logentry( ( char * ) &linein, &ee, &is_eor );
/* should we do something with the return code? */
if ( is_eor ) {
@@ -188,7 +188,7 @@ int main( int argc, char *argv[] )
break;
case 'h':
- usage( argv[0] );
+ usage( exename );
display_eventlog_names( );
exit( 0 );
break;