* 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.
This commit is contained in:
nekral-guest 2008-06-13 20:08:33 +00:00
parent c82cfebd5e
commit 232bcafd7c
2 changed files with 8 additions and 2 deletions

View File

@ -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

View 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;
}