summaryrefslogtreecommitdiffstats
path: root/source/passdb/pdb_mysql.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2003-04-28 17:48:48 +0000
committerJelmer Vernooij <jelmer@samba.org>2003-04-28 17:48:48 +0000
commitbc4b51bcb2daa7271c884cb83bf8bdba6d3a9b6d (patch)
treedb57cdb240c54b4b980720385535abf4f087c5a8 /source/passdb/pdb_mysql.c
parente112dc1641c47c7185e098918980df1a4d950bd7 (diff)
downloadsamba-bc4b51bcb2daa7271c884cb83bf8bdba6d3a9b6d.tar.gz
samba-bc4b51bcb2daa7271c884cb83bf8bdba6d3a9b6d.tar.xz
samba-bc4b51bcb2daa7271c884cb83bf8bdba6d3a9b6d.zip
Use NTSTATUS as return value for smb_register_*() functions and init_module()
function. Patch by metze with some minor modifications.
Diffstat (limited to 'source/passdb/pdb_mysql.c')
-rw-r--r--source/passdb/pdb_mysql.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/passdb/pdb_mysql.c b/source/passdb/pdb_mysql.c
index ca1c239d73d..d3eb7cb975e 100644
--- a/source/passdb/pdb_mysql.c
+++ b/source/passdb/pdb_mysql.c
@@ -946,7 +946,7 @@ static NTSTATUS mysqlsam_init(struct pdb_context * pdb_context, struct pdb_metho
return NT_STATUS_OK;
}
-int pdb_mysql_init(void)
+NTSTATUS pdb_mysql_init(void)
{
- return smb_register_passdb("mysql", mysqlsam_init, PASSDB_INTERFACE_VERSION);
+ return smb_register_passdb(PASSDB_INTERFACE_VERSION, "mysql", mysqlsam_init);
}