Skip to content

Commit

Permalink
Get rid of format warning in tst-widetext.c.
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Liebler authored and Andreas Krebbel committed Dec 17, 2014
1 parent bdf079d commit eca2772
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion libio/tst-widetext.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit eca2772

Please sign in to comment.