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

nekral-guest at alioth.debian.org nekral-guest at alioth.debian.org
Fri Jun 13 20:08:34 UTC 2008


Author: nekral-guest
Date: 2008-06-13 20:08:33 +0000 (Fri, 13 Jun 2008)
New Revision: 2143

Modified:
   upstream/trunk/ChangeLog
   upstream/trunk/libmisc/pwd2spwd.c
Log:
	* libmisc/pwd2spwd.c: Cast number of days to a long integer.
	* libmisc/pwd2spwd.c: Use SHADOW_SP_FLAG_UNSET for the initial
	value of sp.sp_flag.


Modified: upstream/trunk/ChangeLog
===================================================================
--- upstream/trunk/ChangeLog	2008-06-13 20:05:51 UTC (rev 2142)
+++ upstream/trunk/ChangeLog	2008-06-13 20:08:33 UTC (rev 2143)
@@ -1,5 +1,11 @@
 2008-06-13  Nicolas François  <nicolas.francois at centraliens.net>
 
+	* libmisc/pwd2spwd.c: Cast number of days to a long integer.
+	* libmisc/pwd2spwd.c: Use SHADOW_SP_FLAG_UNSET for the initial
+	value of sp.sp_flag.
+
+2008-06-13  Nicolas François  <nicolas.francois at centraliens.net>
+
 	* lib/defines.h: Include <config.h> since it uses the macro that
 	might be defined in this header file.
 	* lib/defines.h: Prefer checking if HAVE_LOCALE_H or ENABLE_NLS

Modified: upstream/trunk/libmisc/pwd2spwd.c
===================================================================
--- upstream/trunk/libmisc/pwd2spwd.c	2008-06-13 20:05:51 UTC (rev 2142)
+++ upstream/trunk/libmisc/pwd2spwd.c	2008-06-13 20:08:33 UTC (rev 2143)
@@ -64,7 +64,7 @@
 		 */
 		sp.sp_min = 0;
 		sp.sp_max = (10000L * DAY) / SCALE;
-		sp.sp_lstchg = time ((time_t *) 0) / SCALE;
+		sp.sp_lstchg = (long) time ((time_t *) 0) / SCALE;
 	}
 
 	/*
@@ -74,7 +74,7 @@
 	sp.sp_warn = -1;
 	sp.sp_expire = -1;
 	sp.sp_inact = -1;
-	sp.sp_flag = -1;
+	sp.sp_flag = SHADOW_SP_FLAG_UNSET;
 
 	return &sp;
 }




More information about the Pkg-shadow-commits mailing list