summaryrefslogtreecommitdiffstats
path: root/chpass
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1998-10-17 14:06:20 +0000
committerBruce Evans <bde@FreeBSD.org>1998-10-17 14:06:20 +0000
commitdaffec628c954a2fb752441e3e2d17b0530f4e40 (patch)
tree189c8566658514f7d48641e036eebe3c2969677c /chpass
parent94e7f9dc998b872d6f2051f73b6a3145b2bc9b27 (diff)
downloadpw-darwin-daffec628c954a2fb752441e3e2d17b0530f4e40.tar.gz
pw-darwin-daffec628c954a2fb752441e3e2d17b0530f4e40.tar.zst
pw-darwin-daffec628c954a2fb752441e3e2d17b0530f4e40.zip
Fixed printf format errors. Assume that time_t's are representable as
longs.
Diffstat (limited to 'chpass')
-rw-r--r--chpass/pw_copy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/chpass/pw_copy.c b/chpass/pw_copy.c
index 73e2da2..d60f751 100644
--- a/chpass/pw_copy.c
+++ b/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);