mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-21 01:12:26 +08:00
Fix tst-ftell-active-handler.c warning.
A recent change to libio/tst-ftell-active-handler.c (postdating my last check for warnings on x86) introduced a format warning from a long int variable used with a %zu format. This patch fixes it by using %ld for the format to match the variable. Tested for x86. * libio/tst-ftell-active-handler.c (do_ftruncate_test): Use %ld format for long int variable.
This commit is contained in:
parent
f5f46d51f7
commit
1b8bf35181
@ -1,3 +1,8 @@
|
|||||||
|
2014-12-10 Joseph Myers <joseph@codesourcery.com>
|
||||||
|
|
||||||
|
* libio/tst-ftell-active-handler.c (do_ftruncate_test): Use %ld
|
||||||
|
format for long int variable.
|
||||||
|
|
||||||
2014-12-10 Anders Kaseorg <andersk@MIT.EDU>
|
2014-12-10 Anders Kaseorg <andersk@MIT.EDU>
|
||||||
|
|
||||||
[BZ #10672]
|
[BZ #10672]
|
||||||
|
@ -165,7 +165,7 @@ do_ftruncate_test (const char *filename)
|
|||||||
it. */
|
it. */
|
||||||
if (offset != new_offset)
|
if (offset != new_offset)
|
||||||
{
|
{
|
||||||
printf ("Incorrect offset. Expected %zu, but got %ld\n",
|
printf ("Incorrect offset. Expected %ld, but got %ld\n",
|
||||||
offset, new_offset);
|
offset, new_offset);
|
||||||
|
|
||||||
ret |= 1;
|
ret |= 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user