Another little one: Make pdb_test.c at least compile, although its way out of
authorVolker Lendecke <vlendec@samba.org>
Tue, 30 Dec 2003 21:12:36 +0000 (21:12 +0000)
committerVolker Lendecke <vlendec@samba.org>
Tue, 30 Dec 2003 21:12:36 +0000 (21:12 +0000)
date.

Volker
(This used to be commit 5d7a14166af3daf04b570fd5f66469d5db5a3500)

examples/pdb/Makefile
examples/pdb/pdb_test.c

index 115fd3c87e729df1570e809293fd338ce816b41a..a53cd5d5e2d8061846f07feb1cdfc94d1736f054 100644 (file)
@@ -8,7 +8,7 @@ SAMBA_SRC = ../../source
 SAMBA_INCL = ../../source/include
 UBIQX_SRC = ../../source/ubiqx
 SMBWR_SRC = ../../source/smbwrapper
-CFLAGS = -I$(SAMBA_SRC) -I$(SAMBA_INCL) -I$(UBIQX_SRC) -I$(SMBWR_SRC) -Wall -g
+CFLAGS = -I$(SAMBA_SRC) -I$(SAMBA_INCL) -I$(UBIQX_SRC) -I$(SMBWR_SRC) -Wall -g -I/usr/include/heimdal -fPIC
 PDB_OBJS = pdb_test.so
 
 # Default target
index f5fb57ddb20acc7c2181595c567672b3cfd67e80..e46c621d48eaefb67c9c2a5f00a39030e29b0ead 100644 (file)
@@ -139,11 +139,7 @@ NTSTATUS testsam_init(PDB_CONTEXT *pdb_context, PDB_METHODS **pdb_method, const
        return NT_STATUS_OK;
 }
 
-int init_module(void);
-
-int init_module() {
-       if(smb_register_passdb("testsam", testsam_init, PASSDB_INTERFACE_VERSION))
-               return 0;
-
-       return 1;
+NTSTATUS init_module(void) {
+       return smb_register_passdb(PASSDB_INTERFACE_VERSION, "testsam",
+                                  testsam_init);
 }