From 7c5d5ddb6d02f52d3baaad393142dcc259c2009c Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Thu, 17 Nov 2005 21:07:24 +0000 Subject: [PATCH] r11763: fix more build breakage (This used to be commit 5ab76ec8f88da6d6f372b44b7533ca2cb6c2ba0b) --- source3/utils/eventlogadm.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source3/utils/eventlogadm.c b/source3/utils/eventlogadm.c index 31e853b61f4..1d60d6b7ea8 100644 --- a/source3/utils/eventlogadm.c +++ b/source3/utils/eventlogadm.c @@ -79,7 +79,7 @@ int DoWriteCommand( int argc, char **argv, BOOL debugflag, char *exename ) { FILE *f1; char *argfname; - TDB_CONTEXT *elog_tdb; + ELOG_TDB *etdb; /* fixed constants are bad bad bad */ pstring linein; @@ -100,7 +100,7 @@ int DoWriteCommand( int argc, char **argv, BOOL debugflag, char *exename ) argfname = argv[0]; - if ( !( elog_tdb = elog_open_tdb( argfname ) ) ) { + if ( !( etdb = elog_open_tdb( argfname, False ) ) ) { printf( "can't open the eventlog TDB (%s)\n", argfname ); return -1; } @@ -130,7 +130,7 @@ int DoWriteCommand( int argc, char **argv, BOOL debugflag, char *exename ) /* printf("Writing to the event log\n"); */ - rcnum = write_eventlog_tdb( elog_tdb, &ee ); + rcnum = write_eventlog_tdb( ELOG_TDB_CTX(etdb), &ee ); if ( !rcnum ) { printf( "Can't write to the event log\n" ); } else { @@ -146,7 +146,7 @@ int DoWriteCommand( int argc, char **argv, BOOL debugflag, char *exename ) } } - tdb_close( elog_tdb ); + elog_close_tdb( etdb , False ); return 0; } -- 2.11.4.GIT