diff options
author | Volker Lendecke <vlendec@samba.org> | 2003-12-30 21:12:36 +0000 |
---|---|---|
committer | Volker Lendecke <vlendec@samba.org> | 2003-12-30 21:12:36 +0000 |
commit | 2abf5f928fc974f0f03443f4bf3b8a8e97738aa1 (patch) | |
tree | e8331308f41c50b246f2c139f5bf3fdc1fda2d27 /examples/pdb/pdb_test.c | |
parent | 0ac7dcce6ba47517cd279907071cb50b16b82d16 (diff) | |
download | samba-2abf5f928fc974f0f03443f4bf3b8a8e97738aa1.tar.gz samba-2abf5f928fc974f0f03443f4bf3b8a8e97738aa1.tar.bz2 samba-2abf5f928fc974f0f03443f4bf3b8a8e97738aa1.zip |
Another little one: Make pdb_test.c at least compile, although its way out of
date.
Volker
(This used to be commit 5d7a14166af3daf04b570fd5f66469d5db5a3500)
Diffstat (limited to 'examples/pdb/pdb_test.c')
-rw-r--r-- | examples/pdb/pdb_test.c | 10 |
1 files changed, 3 insertions, 7 deletions
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); } |