]> granicus.if.org Git - shadow/commitdiff
* libmisc/pwd2spwd.c: Cast number of days to a long integer.
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Fri, 13 Jun 2008 20:08:33 +0000 (20:08 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Fri, 13 Jun 2008 20:08:33 +0000 (20:08 +0000)
* libmisc/pwd2spwd.c: Use SHADOW_SP_FLAG_UNSET for the initial
value of sp.sp_flag.

ChangeLog
libmisc/pwd2spwd.c

index ccf4fd90c88de222d8bedc66c7ebbb231cb3e27d..8678a011c233efc7bfc93c0ab3e20f35a4846917 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-06-13  Nicolas François  <nicolas.francois@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@centraliens.net>
 
        * lib/defines.h: Include <config.h> since it uses the macro that
index fd5b35a57820bbd4eb731636beedaeb842917081..1c41513bdb2d29890722ad892bd73b918cc40368 100644 (file)
@@ -64,7 +64,7 @@ struct spwd *pwd_to_spwd (const struct passwd *pw)
                 */
                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 @@ struct spwd *pwd_to_spwd (const struct passwd *pw)
        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;
 }