Skip to content

Commit

Permalink
examples/pdb: fix and validate pdb_test_init() prototype via static_d…
Browse files Browse the repository at this point in the history
…ecl_pdb;

Signed-off-by: Stefan Metzmacher <[email protected]>
Reviewed-by: Ralph Boehme <[email protected]>
  • Loading branch information
metze-samba authored and slowfranklin committed Aug 20, 2015
1 parent f8fca7d commit 4451d0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/pdb/test.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4451d0a

Please sign in to comment.