Cast pw_change and pw_expire to long and fix the format specifier accordingly.
This commit is contained in:
parent
f5dbc00887
commit
15b09e6540
@ -336,9 +336,9 @@ pline(pw)
|
||||
err(1, "getpwuid");
|
||||
}
|
||||
|
||||
(void)printf("%s:%s:%d:%d:%s:%d:%d:%s:%s:%s\n", pw->pw_name,
|
||||
(void)printf("%s:%s:%d:%d:%s:%ld:%ld:%s:%s:%s\n", pw->pw_name,
|
||||
pw->pw_passwd, pw->pw_uid, pw->pw_gid, pw->pw_class,
|
||||
pw->pw_change, pw->pw_expire, pw->pw_gecos,
|
||||
(long)pw->pw_change, (long)pw->pw_expire, pw->pw_gecos,
|
||||
pw->pw_dir, pw->pw_shell);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user