svn commit: samba r18665 - in branches/SAMBA_3_0/source/auth: .
vlendec at samba.org
vlendec at samba.org
Tue Sep 19 01:25:52 GMT 2006
Author: vlendec
Date: 2006-09-19 01:25:52 +0000 (Tue, 19 Sep 2006)
New Revision: 18665
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=18665
Log:
Remove two type-punned warnings
Modified:
branches/SAMBA_3_0/source/auth/auth_script.c
branches/SAMBA_3_0/source/auth/auth_winbind.c
Changeset:
Modified: branches/SAMBA_3_0/source/auth/auth_script.c
===================================================================
--- branches/SAMBA_3_0/source/auth/auth_script.c 2006-09-19 01:21:03 UTC (rev 18664)
+++ branches/SAMBA_3_0/source/auth/auth_script.c 2006-09-19 01:25:52 UTC (rev 18665)
@@ -132,10 +132,11 @@
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;
}
Modified: branches/SAMBA_3_0/source/auth/auth_winbind.c
===================================================================
--- branches/SAMBA_3_0/source/auth/auth_winbind.c 2006-09-19 01:21:03 UTC (rev 18664)
+++ branches/SAMBA_3_0/source/auth/auth_winbind.c 2006-09-19 01:25:52 UTC (rev 18665)
@@ -158,10 +158,11 @@
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;
}
More information about the samba-cvs
mailing list