[Pkg-shadow-commits] r2038 - in upstream/trunk: . libmisc

nekral-guest at alioth.debian.org nekral-guest at alioth.debian.org
Sun May 25 23:38:07 UTC 2008


Author: nekral-guest
Date: 2008-05-25 23:38:05 +0000 (Sun, 25 May 2008)
New Revision: 2038

Modified:
   upstream/trunk/ChangeLog
   upstream/trunk/libmisc/pam_pass.c
Log:
	* libmisc/pam_pass.c (do_pam_passwd): The silent and
	change_expired are no booleans instead of int.
	* libmisc/pam_pass.c: The return value of pam_end is not checked
	on purpose.


Modified: upstream/trunk/ChangeLog
===================================================================
--- upstream/trunk/ChangeLog	2008-05-25 23:32:41 UTC (rev 2037)
+++ upstream/trunk/ChangeLog	2008-05-25 23:38:05 UTC (rev 2038)
@@ -1,5 +1,12 @@
 2008-05-26  Nicolas François  <nicolas.francois at centraliens.net>
 
+	* libmisc/pam_pass.c (do_pam_passwd): The silent and
+	change_expired are no booleans instead of int.
+	* libmisc/pam_pass.c: The return value of pam_end is not checked
+	on purpose.
+
+2008-05-26  Nicolas François  <nicolas.francois at centraliens.net>
+
 	* libmisc/getlong.c: Avoid implicit conversion of pointers / chars
 	to booleans.
 	* libmisc/getlong.c: Add brackets.

Modified: upstream/trunk/libmisc/pam_pass.c
===================================================================
--- upstream/trunk/libmisc/pam_pass.c	2008-05-25 23:32:41 UTC (rev 2037)
+++ upstream/trunk/libmisc/pam_pass.c	2008-05-25 23:38:05 UTC (rev 2038)
@@ -50,7 +50,7 @@
 #include "pam_defs.h"
 #include "prototypes.h"
 
-void do_pam_passwd (const char *user, int silent, int change_expired)
+void do_pam_passwd (const char *user, bool silent, bool change_expired)
 {
 	pam_handle_t *pamh = NULL;
 	int flags = 0, ret;
@@ -76,7 +76,7 @@
 	}
 
 	fputs (_("passwd: password updated successfully\n"), stderr);
-	pam_end (pamh, PAM_SUCCESS);
+	(void) pam_end (pamh, PAM_SUCCESS);
 }
 #else				/* !USE_PAM */
 extern int errno;		/* warning: ANSI C forbids an empty source file */




More information about the Pkg-shadow-commits mailing list