summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Liebler <stli@linux.vnet.ibm.com>2014-12-17 16:42:51 +0100
committerAndreas Krebbel <krebbel@linux.vnet.ibm.com>2014-12-17 16:42:51 +0100
commiteca2772b9a2b057a1af6604afb9b5d3ce3448497 (patch)
tree913bb1702532477f072ef1682f1e056a9d36b0c4
parentbdf079da369ad5685c0432b2f41a5aaf1ec990e7 (diff)
Get rid of format warning in tst-widetext.c.
-rw-r--r--ChangeLog6
-rw-r--r--libio/tst-widetext.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 61bbbc941d..1a79665f7e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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;