summaryrefslogtreecommitdiff
path: root/net/samba3/files/patch-nsswitch_pam_winbind.c
blob: 1e0c90546733574eeec68c6fec46a5f51736e472 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- nsswitch/pam_winbind.c.orig	Mon Aug  7 18:46:33 2006
+++ nsswitch/pam_winbind.c	Thu Aug 24 01:30:57 2006
@@ -1016,7 +1016,7 @@
 		}
 		return PAM_USER_UNKNOWN;
 	case 0:
-		pam_get_data( pamh, PAM_WINBIND_NEW_AUTHTOK_REQD, (const void **)&tmp);
+		pam_get_data( pamh, PAM_WINBIND_NEW_AUTHTOK_REQD, (void **)&tmp);
 		if (tmp != NULL) {
 			retval = atoi(tmp);
 			switch (retval) {
@@ -1319,7 +1319,7 @@
 		 * By reaching here we have approved the passwords and must now
 		 * rebuild the password database file.
 		 */
-		pam_get_data( pamh, PAM_WINBIND_PWD_LAST_SET, (const void **)&pwdlastset_update);
+		pam_get_data( pamh, PAM_WINBIND_PWD_LAST_SET, (void **)&pwdlastset_update);
 
 		retval = winbind_chauthtok_request(pamh, ctrl, user, pass_old, pass_new, pwdlastset_update);
 		if (retval) {