non NULL argument.
* src/passwd.c: Cast number of days to a long integer.
+2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
+
+ * src/passwd.c: Ignore return value of time() when use with a
+ non NULL argument.
+ * src/passwd.c: Cast number of days to a long integer.
+
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
* src/groupmod.c: The ID argument of audit_logger is an unsigned
return;
}
- time (&now);
+ (void) time (&now);
/*
* Expired accounts cannot be changed ever. Passwords which are
nsp->sp_inact = (inact * DAY) / SCALE;
}
if (do_update_age) {
- nsp->sp_lstchg = time ((time_t *) 0) / SCALE;
+ nsp->sp_lstchg = (long) time ((time_t *) 0) / SCALE;
}
if (lflg) {
/* Set the account expiry field to 1.