diff options
author | Dmitry V. Levin <ldv@altlinux.org> | 2013-11-19 14:05:09 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2013-11-20 10:51:24 +0000 |
commit | a5f0998028283c5933f147dabae1dc7e65170bcd (patch) | |
tree | eb847fa6142f5e9a62d7a831759ddefb715c847c /modules/pam_lastlog | |
parent | 45cdd2489e68465c2d2202370c350069d2a391b8 (diff) | |
download | pam-a5f0998028283c5933f147dabae1dc7e65170bcd.tar.gz pam-a5f0998028283c5933f147dabae1dc7e65170bcd.tar.bz2 pam-a5f0998028283c5933f147dabae1dc7e65170bcd.zip |
pam_lastlog: fix format string
gcc -Wformat justly complains:
format '%d' expects argument of type 'int', but argument 5 has type 'time_t'
* modules/pam_lastlog/pam_lastlog.c (pam_sm_authenticate): Fix format
string.
Diffstat (limited to 'modules/pam_lastlog')
-rw-r--r-- | modules/pam_lastlog/pam_lastlog.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/pam_lastlog/pam_lastlog.c b/modules/pam_lastlog/pam_lastlog.c index bd454ffd..ad8c6605 100644 --- a/modules/pam_lastlog/pam_lastlog.c +++ b/modules/pam_lastlog/pam_lastlog.c @@ -628,7 +628,8 @@ pam_sm_authenticate(pam_handle_t *pamh, int flags, lltime = (time(NULL) - lltime) / (24*60*60); if (lltime > inactive_days) { - pam_syslog(pamh, LOG_INFO, "user %s inactive for %d days - denied", user, lltime); + pam_syslog(pamh, LOG_INFO, "user %s inactive for %ld days - denied", + user, (long) lltime); return PAM_AUTH_ERR; } |