testsuite: Fix the 32-bit test build
authorVolker Lendecke <vl@samba.org>
Wed, 20 Sep 2017 00:12:33 +0000 (00:12 +0000)
committerJeremy Allison <jra@samba.org>
Thu, 21 Sep 2017 00:49:32 +0000 (02:49 +0200)
samba_init_module returns 32-bit. For some reason on my
32-bit lxc "return 0" was converted to something but
NT_STATUS_OK, making initialization fail.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Thu Sep 21 02:49:32 CEST 2017 on sn-devel-144

testsuite/unittests/rpc_test_dummy_module.c

index d067b6e2d2b8de6684be5e393d0b14eee27d77b0..20d0571b46fcc774fe997bb43f593ed72b02ece0 100644 (file)
@@ -1,10 +1,10 @@
-#include <stdio.h>
-#include <stdlib.h>
-#include <signal.h>
+#include "replace.h"
+#include <sys/types.h>
 #include <unistd.h>
 #include <unistd.h>
+#include "libcli/util/ntstatus.h"
 
 
-int samba_init_module(void);
-int samba_init_module(void)
+NTSTATUS samba_init_module(void);
+NTSTATUS samba_init_module(void)
 {
        int rc;
 
 {
        int rc;
 
@@ -16,5 +16,5 @@ int samba_init_module(void)
                exit(-1);
        }
 
                exit(-1);
        }
 
-       return 0;
+       return NT_STATUS_OK;
 }
 }