diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2003-04-28 18:33:25 +0000 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2003-04-28 18:33:25 +0000 |
commit | 81256ecbb977351b4d6a992df17be4b107071935 (patch) | |
tree | b299293b39b94c7c4fb9eb8f7ffc179aad46a03d /source3/auth/auth_sam.c | |
parent | 023cd5ff70083526423320470c41eefef1b8f93f (diff) | |
download | samba-81256ecbb977351b4d6a992df17be4b107071935.tar.gz samba-81256ecbb977351b4d6a992df17be4b107071935.tar.bz2 samba-81256ecbb977351b4d6a992df17be4b107071935.zip |
Use NTSTATUS as return value for smb_register_*() functions and init_module()
function. Patch by metze with some minor modifications.
(This used to be commit f4576757d1d52a8f1b96894c869bb76450003fd1)
Diffstat (limited to 'source3/auth/auth_sam.c')
-rw-r--r-- | source3/auth/auth_sam.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/auth/auth_sam.c b/source3/auth/auth_sam.c index aa399f33e2..33ea9bc73e 100644 --- a/source3/auth/auth_sam.c +++ b/source3/auth/auth_sam.c @@ -563,10 +563,10 @@ NTSTATUS auth_init_samstrict_dc(struct auth_context *auth_context, const char *p return NT_STATUS_OK; } -int auth_sam_init(void) +NTSTATUS auth_sam_init(void) { - smb_register_auth("samstrict_dc", auth_init_samstrict_dc, AUTH_INTERFACE_VERSION); - smb_register_auth("samstrict", auth_init_samstrict, AUTH_INTERFACE_VERSION); - smb_register_auth("sam", auth_init_sam, AUTH_INTERFACE_VERSION); - return True; + smb_register_auth(AUTH_INTERFACE_VERSION, "samstrict_dc", auth_init_samstrict_dc); + smb_register_auth(AUTH_INTERFACE_VERSION, "samstrict", auth_init_samstrict); + smb_register_auth(AUTH_INTERFACE_VERSION, "sam", auth_init_sam); + return NT_STATUS_OK; } |