Get rid of format warning in tst-widetext.c.

This commit is contained in:
Stefan Liebler 2014-12-17 16:42:51 +01:00 committed by Andreas Krebbel
parent bdf079da36
commit eca2772b9a
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2014-12-17 Stefan Liebler <stli@linux.vnet.ibm.com>
* libio/tst-widetext.c (do_test):
Use format type %td instead of %Zd for ptrdiff_t
in order to avoid format warning.
2014-12-17 Andreas Schwab <schwab@suse.de>
* nscd/mem.c (gc): Add size_t cast to match printf format.

View File

@ -291,7 +291,7 @@ do_test (void)
{
if (fgetws (wcp, &wc2buf[wcsize] - wcp + 1, fp) == NULL)
{
printf ("%u: short read using fgetws (only %Zd of %Zd)\n",
printf ("%u: short read using fgetws (only %td of %Zd)\n",
__LINE__, wcp - wc2buf, wcsize);
status = 1;
break;