examples/pdb: fix and validate pdb_test_init() prototype via static_decl_pdb;
authorStefan Metzmacher <metze@samba.org>
Thu, 13 Aug 2015 16:16:20 +0000 (18:16 +0200)
committerRalph Böhme <slow@samba.org>
Thu, 20 Aug 2015 14:06:20 +0000 (16:06 +0200)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
examples/pdb/test.c

index 5780130f3d8c9bab10c5af0a143f365dec9b1a98..6d68d87a929ce433bd6e15b0da919009c7877e1f 100644 (file)
@@ -107,8 +107,8 @@ static NTSTATUS testsam_init(struct pdb_methods **pdb_method, const char *locati
        return NT_STATUS_OK;
 }
 
-NTSTATUS pdb_testsam_init(void);
-NTSTATUS pdb_testsam_init(void)
+static_decl_pdb;
+NTSTATUS pdb_test_init(void)
 {
        return smb_register_passdb(PASSDB_INTERFACE_VERSION, "testsam",
                                   testsam_init);