diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2014-12-19 14:04:35 -0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2014-12-30 08:09:43 -0800 |
commit | fe342f50136919f1945d9a03964ee614c97d8659 (patch) | |
tree | ad85cb04084740b896e5ab476c6f1df5d7ac36f0 /time/tst-posixtz.c | |
parent | 37f469007dd6420bdc0607d0cda63513c42305d9 (diff) | |
download | glibc-fe342f50136919f1945d9a03964ee614c97d8659.tar.gz glibc-fe342f50136919f1945d9a03964ee614c97d8659.tar.xz glibc-fe342f50136919f1945d9a03964ee614c97d8659.zip |
Replace %ld with %jd and cast to intmax_t
Diffstat (limited to 'time/tst-posixtz.c')
-rw-r--r-- | time/tst-posixtz.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/time/tst-posixtz.c b/time/tst-posixtz.c index c1ea267cb4..16aa19d654 100644 --- a/time/tst-posixtz.c +++ b/time/tst-posixtz.c @@ -39,7 +39,8 @@ do_test (void) char buf[100]; struct tm *tmp; - printf ("TZ = \"%s\", time = %ld => ", tests[cnt].tz, tests[cnt].when); + printf ("TZ = \"%s\", time = %jd => ", tests[cnt].tz, + (intmax_t) tests[cnt].when); fflush (stdout); setenv ("TZ", tests[cnt].tz, 1); |