summaryrefslogtreecommitdiffstats
path: root/usr.bin/make
diff options
context:
space:
mode:
authorharti <harti@FreeBSD.org>2005-05-24 15:45:11 +0000
committerharti <harti@FreeBSD.org>2005-05-24 15:45:11 +0000
commitdef2e7bba0abab503a6888d6acfad8b387917c87 (patch)
tree4fdc243ebc0d86306645102885d9037762fb2952 /usr.bin/make
parent5665c83255708cf9140f4036b891298207a6285d (diff)
downloadFreeBSD-src-def2e7bba0abab503a6888d6acfad8b387917c87.zip
FreeBSD-src-def2e7bba0abab503a6888d6acfad8b387917c87.tar.gz
Fix a 64-bit warning by casting an int64_t to intmax_t and printing it
with %jd.
Diffstat (limited to 'usr.bin/make')
-rw-r--r--usr.bin/make/arch.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/make/arch.c b/usr.bin/make/arch.c
index 2078d34..716c1d8 100644
--- a/usr.bin/make/arch.c
+++ b/usr.bin/make/arch.c
@@ -775,7 +775,8 @@ ArchArchiveTouch(struct arfile *ar, int64_t ts)
* change timestamp, be sure to not NUL-terminated it, but
* to fill with spaces.
*/
- snprintf(ar->hdr.ar_date, sizeof(ar->hdr.ar_date), "%lld", ts);
+ snprintf(ar->hdr.ar_date, sizeof(ar->hdr.ar_date), "%jd",
+ (intmax_t)ts);
memset(ar->hdr.ar_date + strlen(ar->hdr.ar_date),
' ', sizeof(ar->hdr.ar_date) - strlen(ar->hdr.ar_date));
OpenPOWER on IntegriCloud