mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-08 22:30:07 +00:00
Replace %ld with %jd and cast to intmax_t
This commit is contained in:
parent
fe342f5013
commit
126f6c7288
@ -27,6 +27,7 @@
|
||||
* sysdeps/pthread/tst-timer.c (main): Likewise.
|
||||
* time/clocktest.c (main): Likewise.
|
||||
* time/tst-posixtz.c (do_test): Likewise.
|
||||
* timezone/tst-timezone.c (main): Likewise.
|
||||
|
||||
2014-12-30 Andrew Senkevich <andrew.senkevich@intel.com>
|
||||
H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
@ -126,8 +126,8 @@ main (int argc, char ** argv)
|
||||
strcpy (envstring, "TZ=Europe/London");
|
||||
putenv (envstring);
|
||||
t = mktime (&tmBuf);
|
||||
snprintf (buf, sizeof (buf), "TZ=%s %ld %d %d %d %d %d %d %d %d %d",
|
||||
getenv ("TZ"), t,
|
||||
snprintf (buf, sizeof (buf), "TZ=%s %jd %d %d %d %d %d %d %d %d %d",
|
||||
getenv ("TZ"), (intmax_t) t,
|
||||
tmBuf.tm_sec, tmBuf.tm_min, tmBuf.tm_hour,
|
||||
tmBuf.tm_mday, tmBuf.tm_mon, tmBuf.tm_year,
|
||||
tmBuf.tm_wday, tmBuf.tm_yday, tmBuf.tm_isdst);
|
||||
@ -149,8 +149,8 @@ main (int argc, char ** argv)
|
||||
strcpy (envstring, "TZ=GMT");
|
||||
/* No putenv call needed! */
|
||||
t = mktime (&tmBuf);
|
||||
snprintf (buf, sizeof (buf), "TZ=%s %ld %d %d %d %d %d %d %d %d %d",
|
||||
getenv ("TZ"), t,
|
||||
snprintf (buf, sizeof (buf), "TZ=%s %jd %d %d %d %d %d %d %d %d %d",
|
||||
getenv ("TZ"), (intmax_t) t,
|
||||
tmBuf.tm_sec, tmBuf.tm_min, tmBuf.tm_hour,
|
||||
tmBuf.tm_mday, tmBuf.tm_mon, tmBuf.tm_year,
|
||||
tmBuf.tm_wday, tmBuf.tm_yday, tmBuf.tm_isdst);
|
||||
|
Loading…
Reference in New Issue
Block a user