diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2013-08-22 04:43:42 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2013-08-22 04:43:42 +0000 |
commit | 323d1abbc45a9dfeae3d39b5f8cc041dc4b73bd1 (patch) | |
tree | 64ea330e44da28fb9da88722be4cb4e200afe707 /libexec/ftpd | |
parent | 31003a7e68970e14de72e158246cccd33cccc1e7 (diff) |
Correct format string mismatches turned up by -Wformat=2
suggestions and ok millert@
Diffstat (limited to 'libexec/ftpd')
-rw-r--r-- | libexec/ftpd/ftpd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c index f5890be152b..fc523178ee7 100644 --- a/libexec/ftpd/ftpd.c +++ b/libexec/ftpd/ftpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ftpd.c,v 1.197 2013/07/26 18:13:02 guenther Exp $ */ +/* $OpenBSD: ftpd.c,v 1.198 2013/08/22 04:43:40 guenther Exp $ */ /* $NetBSD: ftpd.c,v 1.15 1995/06/03 22:46:47 mycroft Exp $ */ /* @@ -2812,8 +2812,8 @@ logxfer(char *name, off_t size, time_t start) strvis(vpw, guest? guestpw : pw->pw_name, VIS_SAFE|VIS_NOSLASH); len = snprintf(buf, sizeof(buf), - "%.24s %d %s %qd %s %c %s %c %c %s ftp %d %s %s\n", - ctime(&now), now - start + (now == start), + "%.24s %lld %s %qd %s %c %s %c %c %s ftp %d %s %s\n", + ctime(&now), (long long)(now - start + (now == start)), vremotehost, (long long)size, vpath, ((type == TYPE_A) ? 'a' : 'b'), "*" /* none yet */, 'o', ((guest) ? 'a' : 'r'), |