(main): Add casts to avoid warnings.
authordrepper <drepper>
Tue, 27 Aug 2002 05:59:55 +0000 (05:59 +0000)
committerdrepper <drepper>
Tue, 27 Aug 2002 05:59:55 +0000 (05:59 +0000)
stdio-common/tst-swprintf.c

index a7e232d..e65234b 100644 (file)
@@ -31,14 +31,14 @@ main (void)
   if (n != nexp)                                                             \
     {                                                                        \
       printf ("swprintf (.., .., L\"%ls\", \"%ls\") return %d, not %d\n",     \
-             fmt, input, (int) n, (int) nexp);                               \
+             fmt, (wchar_t*) input, (int) n, (int) nexp);                    \
       result = 1;                                                            \
     }                                                                        \
   else if (wcscmp (buf, exp) != 0)                                           \
     {                                                                        \
       printf ("\
 swprintf (.., .., L\"%ls\", \"%ls\") produced \"%ls\", not \"%ls\"\n",       \
-            fmt, input, buf, exp );                                          \
+            fmt, (wchar_t *) input, buf, exp );                              \
       result = 1;                                                            \
     }