* libmisc/limits.c: Fix the format to match the unsigned long

variable in argument.
	* libmisc/utmp.c: Fix tests. tmptty is a variable stack. ut_host
	is an array of the ut structure. None of them can be NULL.
This commit is contained in:
nekral-guest
2009-09-07 19:50:00 +00:00
parent 2a58111fc1
commit 031279dfb2
3 changed files with 11 additions and 4 deletions

View File

@@ -167,8 +167,9 @@ static int check_logins (const char *name, const char *maxlogins)
* includes the user who is currently trying to log in.
*/
if (count > limit) {
SYSLOG ((LOG_WARN, "Too many logins (max %d) for %s\n",
limit, name));
SYSLOG ((LOG_WARN,
"Too many logins (max %lu) for %s\n",
limit, name));
return LOGIN_ERROR_LOGIN;
}
return 0;