diff options
author | bde <bde@FreeBSD.org> | 1998-10-17 14:06:20 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1998-10-17 14:06:20 +0000 |
commit | 2625896b1bc65794935c64adcc77ce4af92b5ee6 (patch) | |
tree | 45d64134778169166bbbbcd70062bb13c1a59192 /usr.bin | |
parent | 34ae7fd4fe5929df5a41df97583f1e6901db6997 (diff) | |
download | FreeBSD-src-2625896b1bc65794935c64adcc77ce4af92b5ee6.zip FreeBSD-src-2625896b1bc65794935c64adcc77ce4af92b5ee6.tar.gz |
Fixed printf format errors. Assume that time_t's are representable as
longs.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/chpass/pw_copy.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/chpass/pw_copy.c b/usr.bin/chpass/pw_copy.c index 73e2da2..d60f751 100644 --- a/usr.bin/chpass/pw_copy.c +++ b/usr.bin/chpass/pw_copy.c @@ -66,8 +66,8 @@ pw_copy(ffd, tfd, pw) snprintf(uidstr, sizeof(uidstr), "%d", pw->pw_uid); snprintf(gidstr, sizeof(gidstr), "%d", pw->pw_gid); - snprintf(chgstr, sizeof(chgstr), "%ld", pw->pw_change); - snprintf(expstr, sizeof(expstr), "%ld", pw->pw_expire); + snprintf(chgstr, sizeof(chgstr), "%ld", (long)pw->pw_change); + snprintf(expstr, sizeof(expstr), "%ld", (long)pw->pw_expire); if (!(from = fdopen(ffd, "r"))) pw_error(_PATH_MASTERPASSWD, 1, 1); |