* 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>
+
+ * 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
*/
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;
}
/*
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;
}