From eca2772b9a2b057a1af6604afb9b5d3ce3448497 Mon Sep 17 00:00:00 2001 From: Stefan Liebler Date: Wed, 17 Dec 2014 16:42:51 +0100 Subject: [PATCH] Get rid of format warning in tst-widetext.c. --- ChangeLog | 6 ++++++ libio/tst-widetext.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 61bbbc9..1a79665 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2014-12-17 Stefan Liebler + + * 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 * 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 acab72b..83345d7 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; -- 2.7.4