Fix the build of eventlogadm.
authorGünther Deschner <gd@samba.org>
Sun, 13 Apr 2008 16:27:03 +0000 (18:27 +0200)
committerGünther Deschner <gd@samba.org>
Sun, 13 Apr 2008 16:28:24 +0000 (18:28 +0200)
Guenther
(This used to be commit 57a5628abf628b6276f36da8ae1f3c15a4db4488)

source3/utils/eventlogadm.c

index c699f96be7a845a7add841f995ab89b8db995aa9..1b38a7b13b25b02852496599be240655383be60b 100644 (file)
@@ -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;
        }