]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Get rid of format warning in tst-widetext.c.
authorStefan Liebler <stli@linux.vnet.ibm.com>
Wed, 17 Dec 2014 15:42:51 +0000 (16:42 +0100)
committerAndreas Krebbel <krebbel@linux.vnet.ibm.com>
Wed, 17 Dec 2014 15:42:51 +0000 (16:42 +0100)
ChangeLog
libio/tst-widetext.c

index 61bbbc941dd077a2d49bbc36bdc5f22c3425b58b..1a79665f7e65242a94fd102337d6abe4221a4c94 100644 (file)
--- 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.
index acab72b7087fc6b2f3b1bd668a1e0d3594402725..83345d720304bb3d9042b3ced67c069dd76ac6ff 100644 (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;