diff options
author | Stefan Liebler <stli@linux.vnet.ibm.com> | 2014-12-17 16:42:51 +0100 |
---|---|---|
committer | Andreas Krebbel <krebbel@linux.vnet.ibm.com> | 2014-12-17 16:42:51 +0100 |
commit | eca2772b9a2b057a1af6604afb9b5d3ce3448497 (patch) | |
tree | 913bb1702532477f072ef1682f1e056a9d36b0c4 | |
parent | bdf079da369ad5685c0432b2f41a5aaf1ec990e7 (diff) | |
download | glibc-eca2772b9a2b057a1af6604afb9b5d3ce3448497.tar glibc-eca2772b9a2b057a1af6604afb9b5d3ce3448497.tar.gz glibc-eca2772b9a2b057a1af6604afb9b5d3ce3448497.tar.bz2 glibc-eca2772b9a2b057a1af6604afb9b5d3ce3448497.zip |
Get rid of format warning in tst-widetext.c.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | libio/tst-widetext.c | 2 |
2 files changed, 7 insertions, 1 deletions
@@ -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. diff --git a/libio/tst-widetext.c b/libio/tst-widetext.c index acab72b708..83345d7203 100644 --- a/libio/tst-widetext.c +++ b/libio/tst-widetext.c @@ -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; |