1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

r18665: Remove two type-punned warnings

(This used to be commit 157b2c0c26)
This commit is contained in:
Volker Lendecke 2006-09-19 01:25:52 +00:00 committed by Gerald (Jerry) Carter
parent fb79acba60
commit 72e9a5d9e6
2 changed files with 6 additions and 4 deletions

View File

@ -132,10 +132,11 @@ static NTSTATUS auth_init_script(struct auth_context *auth_context, const char *
if (param && *param) {
/* we load the 'fallback' module - if script isn't here, call this
module */
if (!load_auth_module(auth_context, param, (auth_methods **)&(*auth_method)->private_data)) {
auth_methods *priv;
if (!load_auth_module(auth_context, param, &priv)) {
return NT_STATUS_UNSUCCESSFUL;
}
(*auth_method)->private_data = (void *)priv;
}
return NT_STATUS_OK;
}

View File

@ -158,10 +158,11 @@ static NTSTATUS auth_init_winbind(struct auth_context *auth_context, const char
if (param && *param) {
/* we load the 'fallback' module - if winbind isn't here, call this
module */
if (!load_auth_module(auth_context, param, (auth_methods **)&(*auth_method)->private_data)) {
auth_methods *priv;
if (!load_auth_module(auth_context, param, &priv)) {
return NT_STATUS_UNSUCCESSFUL;
}
(*auth_method)->private_data = (void *)priv;
}
return NT_STATUS_OK;
}