mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-08 17:42:12 +03:00
Replace %ld with %jd and cast to intmax_t
This commit is contained in:
@@ -22,6 +22,8 @@
|
|||||||
* rt/tst-timer4.c: Include <stdint.h>.
|
* rt/tst-timer4.c: Include <stdint.h>.
|
||||||
(check_ts): Replace %ld with %jd and cast to intmax_t.
|
(check_ts): Replace %ld with %jd and cast to intmax_t.
|
||||||
(do_test): Likewise.
|
(do_test): Likewise.
|
||||||
|
* stdio-common/tst-fmemopen2.c (do_test): Replace %ld with %jd
|
||||||
|
and cast to intmax_t.
|
||||||
|
|
||||||
2014-12-30 Andrew Senkevich <andrew.senkevich@intel.com>
|
2014-12-30 Andrew Senkevich <andrew.senkevich@intel.com>
|
||||||
H.J. Lu <hongjiu.lu@intel.com>
|
H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
@@ -21,14 +21,15 @@ do_test (void)
|
|||||||
off_t o = ftello (fp);
|
off_t o = ftello (fp);
|
||||||
if (o != nstr)
|
if (o != nstr)
|
||||||
{
|
{
|
||||||
printf ("first ftello returned %ld, expected %zu\n", o, nstr);
|
printf ("first ftello returned %jd, expected %zu\n",
|
||||||
|
(intmax_t) o, nstr);
|
||||||
result = 1;
|
result = 1;
|
||||||
}
|
}
|
||||||
rewind (fp);
|
rewind (fp);
|
||||||
o = ftello (fp);
|
o = ftello (fp);
|
||||||
if (o != 0)
|
if (o != 0)
|
||||||
{
|
{
|
||||||
printf ("second ftello returned %ld, expected 0\n", o);
|
printf ("second ftello returned %jd, expected 0\n", (intmax_t) o);
|
||||||
result = 1;
|
result = 1;
|
||||||
}
|
}
|
||||||
if (fseeko (fp, 0, SEEK_END) != 0)
|
if (fseeko (fp, 0, SEEK_END) != 0)
|
||||||
@@ -39,7 +40,8 @@ do_test (void)
|
|||||||
o = ftello (fp);
|
o = ftello (fp);
|
||||||
if (o != nstr)
|
if (o != nstr)
|
||||||
{
|
{
|
||||||
printf ("third ftello returned %ld, expected %zu\n", o, nstr);
|
printf ("third ftello returned %jd, expected %zu\n",
|
||||||
|
(intmax_t) o, nstr);
|
||||||
result = 1;
|
result = 1;
|
||||||
}
|
}
|
||||||
rewind (fp);
|
rewind (fp);
|
||||||
@@ -50,7 +52,8 @@ do_test (void)
|
|||||||
o = ftello (fp);
|
o = ftello (fp);
|
||||||
if (o != nstr2)
|
if (o != nstr2)
|
||||||
{
|
{
|
||||||
printf ("fourth ftello returned %ld, expected %zu\n", o, nstr2);
|
printf ("fourth ftello returned %jd, expected %zu\n",
|
||||||
|
(intmax_t) o, nstr2);
|
||||||
result = 1;
|
result = 1;
|
||||||
}
|
}
|
||||||
fclose (fp);
|
fclose (fp);
|
||||||
|
Reference in New Issue
Block a user