diff options
author | Volker Lendecke <vlendec@samba.org> | 2003-12-30 21:12:57 +0000 |
---|---|---|
committer | Volker Lendecke <vlendec@samba.org> | 2003-12-30 21:12:57 +0000 |
commit | 65586823a743bc7585e4703ddab35e16f2007e95 (patch) | |
tree | 8431cfe5f6f0c45324747b6f2552f063c53c09bb /examples | |
parent | 359166785a324e6924d5f028618388dbd1eab80b (diff) | |
download | samba-65586823a743bc7585e4703ddab35e16f2007e95.tar.gz samba-65586823a743bc7585e4703ddab35e16f2007e95.tar.bz2 samba-65586823a743bc7585e4703ddab35e16f2007e95.zip |
Another little one: Make pdb_test.c at least compile, although its way out of
date.
Volker
(This used to be commit 0a84173555b29b77b241741c7b1ae4fac595c28f)
Diffstat (limited to 'examples')
-rw-r--r-- | examples/pdb/Makefile | 2 | ||||
-rw-r--r-- | examples/pdb/pdb_test.c | 10 |
2 files changed, 4 insertions, 8 deletions
diff --git a/examples/pdb/Makefile b/examples/pdb/Makefile index 115fd3c87e..a53cd5d5e2 100644 --- a/examples/pdb/Makefile +++ b/examples/pdb/Makefile @@ -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 diff --git a/examples/pdb/pdb_test.c b/examples/pdb/pdb_test.c index f5fb57ddb2..e46c621d48 100644 --- a/examples/pdb/pdb_test.c +++ b/examples/pdb/pdb_test.c @@ -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); } |