summaryrefslogtreecommitdiff
path: root/examples/pdb/pdb_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/pdb/pdb_test.c')
-rw-r--r--examples/pdb/pdb_test.c10
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);
}