This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fix tst-e2big


I just noticed these warnings and will commit now the appended patch:

tst-e2big.c: In function `test':
tst-e2big.c:70: warning: int format, different type arg (arg 4)
tst-e2big.c:76: warning: int format, different type arg (arg 4)

Andreas

2002-09-30  Andreas Jaeger  <aj@suse.de>

	* iconvdata/tst-e2big.c (test): Use %td in printf for ptrdiff_t.

============================================================
Index: iconvdata/tst-e2big.c
--- iconvdata/tst-e2big.c	23 Sep 2002 17:56:29 -0000	1.1
+++ iconvdata/tst-e2big.c	30 Sep 2002 06:50:36 -0000
@@ -67,12 +67,12 @@ test (const char *encoding, char *inbuf,
 
   if (!empty_input && empty_output)
     {
-      fprintf (stderr, "%s: ate %d input bytes\n", encoding, inptr - inbuf);
+      fprintf (stderr, "%s: ate %td input bytes\n", encoding, inptr - inbuf);
       exit (1);
     }
   if (empty_input && !empty_output)
     {
-      fprintf (stderr, "%s: produced %d output bytes\n",
+      fprintf (stderr, "%s: produced %td output bytes\n",
 	       encoding, outptr - outbuf);
       exit (1);
     }

-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]