From: Günther Deschner Date: Sun, 13 Apr 2008 16:27:03 +0000 (+0200) Subject: Fix the build of eventlogadm. X-Git-Tag: samba-3.3.0pre1~2691 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=57a5628abf628b6276f36da8ae1f3c15a4db4488;p=thirdparty%2Fsamba.git Fix the build of eventlogadm. Guenther --- diff --git a/source/utils/eventlogadm.c b/source/utils/eventlogadm.c index c699f96be7a..1b38a7b13b2 100644 --- a/source/utils/eventlogadm.c +++ b/source/utils/eventlogadm.c @@ -68,7 +68,7 @@ static int DoAddSourceCommand( int argc, char **argv, bool debugflag, char *exen return -1; } /* must open the registry before we access it */ - if ( !regdb_init( ) ) { + if (!W_ERROR_IS_OK(regdb_init())) { printf( "Can't open the registry.\n" ); return -1; }