summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-09-19 01:25:52 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:00:45 -0500
commit72e9a5d9e658514568586fb6e7ec4a8e479bf8ad (patch)
tree2c2178b28bb9c3beff01343e9f69595c42dac5fc /source3
parentfb79acba60660c4b452bb0c99f7423abcc376615 (diff)
downloadsamba-72e9a5d9e658514568586fb6e7ec4a8e479bf8ad.tar.gz
samba-72e9a5d9e658514568586fb6e7ec4a8e479bf8ad.tar.bz2
samba-72e9a5d9e658514568586fb6e7ec4a8e479bf8ad.zip
r18665: Remove two type-punned warnings
(This used to be commit 157b2c0c262dc9b9ae2a8a3133479e66e6c8db07)
Diffstat (limited to 'source3')
-rw-r--r--source3/auth/auth_script.c5
-rw-r--r--source3/auth/auth_winbind.c5
2 files changed, 6 insertions, 4 deletions
diff --git a/source3/auth/auth_script.c b/source3/auth/auth_script.c
index 70c906d942..3d007b7730 100644
--- a/source3/auth/auth_script.c
+++ b/source3/auth/auth_script.c
@@ -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;
}
diff --git a/source3/auth/auth_winbind.c b/source3/auth/auth_winbind.c
index 835e0b4b25..fa56757950 100644
--- a/source3/auth/auth_winbind.c
+++ b/source3/auth/auth_winbind.c
@@ -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;
}