Commit Message
On 12/12/2014 10:10 PM, Roland McGrath wrote:
> I think %td is the right format for ptrdiff_t.
>
Yes you are right.
Here is the new patch version, which uses %td instead of %Zd.
Ok to commit?
---
2014-12-15 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.
Comments
@@ -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;