* libmisc/isexpired.c: Added parenthesis.

* libmisc/env.c: Added comments.
	* libmisc/env.c: Avoid implicit conversion of pointer to boolean.
This commit is contained in:
nekral-guest
2011-06-16 21:25:36 +00:00
parent 907025eb40
commit 75f4b049a6
3 changed files with 19 additions and 3 deletions

View File

@@ -107,7 +107,7 @@ int isexpired (const struct passwd *pw, /*@null@*/const struct spwd *sp)
if ( (-1 == sp->sp_lstchg)
|| (-1 == sp->sp_max)
|| (sp->sp_max >= (10000L * DAY / SCALE))) {
|| (sp->sp_max >= ((10000L * DAY) / SCALE))) {
return 0;
}