mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-12 14:29:28 +00:00
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
This commit is contained in:
parent
9372ddf0d1
commit
bb4641e28b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=137132
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user