diff options
author | Darren Tucker <dtucker@zip.com.au> | 2014-01-17 12:23:23 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2014-01-17 12:23:23 +1100 |
commit | 1c4a011e9c939e74815346a560843e1862c300b8 (patch) | |
tree | de49a465fe37053307c97cd6d1e2e1d84994b9a1 /loginrec.c | |
parent | c3d483f9a8275be1113535a1e0d0e384f605f3c4 (diff) |
- (dtucker) [loginrec.c] Cast to the types specfied in the format
specification to prevent warnings.
Diffstat (limited to 'loginrec.c')
-rw-r--r-- | loginrec.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -313,7 +313,8 @@ login_get_lastlog(struct logininfo *li, const uid_t uid) if (strlcpy(li->username, pw->pw_name, sizeof(li->username)) >= sizeof(li->username)) { error("%s: username too long (%lu > max %lu)", __func__, - strlen(pw->pw_name), sizeof(li->username) - 1); + (unsigned long)strlen(pw->pw_name), + (unsigned long)sizeof(li->username) - 1); return NULL; } |