diff options
author | yar <yar@FreeBSD.org> | 2004-11-02 18:48:44 +0000 |
---|---|---|
committer | yar <yar@FreeBSD.org> | 2004-11-02 18:48:44 +0000 |
commit | 9ff4238c2a4f9c95d86a4960a32c80ae725da372 (patch) | |
tree | 4c21bfceddd2c17dcd808ba1d8d4324b3f826af2 /libexec/ftpd | |
parent | e721e7f566d0976e5aa50c84608fdb16fc0ae783 (diff) | |
download | FreeBSD-src-9ff4238c2a4f9c95d86a4960a32c80ae725da372.zip FreeBSD-src-9ff4238c2a4f9c95d86a4960a32c80ae725da372.tar.gz |
Replace the last occurence of (long long) and %qd with
(intmax_t) and %jd, which is the right way to printf
an off_t in the presence of <stdint.h>.
Submitted by: Nick Leuta
Diffstat (limited to 'libexec/ftpd')
-rw-r--r-- | libexec/ftpd/ftpd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c index 3325276..aeeaada 100644 --- a/libexec/ftpd/ftpd.c +++ b/libexec/ftpd/ftpd.c @@ -3175,9 +3175,9 @@ logxfer(char *name, off_t size, time_t start) if (statfd >= 0 && getwd(path) != NULL) { time(&now); - snprintf(buf, sizeof(buf), "%.20s!%s!%s!%s/%s!%qd!%ld\n", + snprintf(buf, sizeof(buf), "%.20s!%s!%s!%s/%s!%jd!%ld\n", ctime(&now)+4, ident, remotehost, - path, name, (long long)size, + path, name, (intmax_t)size, (long)(now - start + (now == start))); write(statfd, buf, strlen(buf)); } |