* tests/test-snprintf.c (main): Avoid shadowed declaration.
* tests/test-vsnprintf.c (main): Likewise.
Reported by Jim Meyering.
Signed-off-by: Eric Blake <eblake@redhat.com>
+2011-07-08 Eric Blake <eblake@redhat.com>
+
+ test-snprintf: avoid compiler warning
+ * tests/test-snprintf.c (main): Avoid shadowed declaration.
+ * tests/test-vsnprintf.c (main): Likewise.
+ Reported by Jim Meyering.
+
2011-07-08 Bruno Haible <bruno@clisp.org>
Tests for module 'pthread_sigmask'.
/* Test the support of the POSIX/XSI format strings with positions. */
{
char result[100];
- int retval = snprintf (result, sizeof (result), "%2$d %1$d", 33, 55);
+ retval = snprintf (result, sizeof (result), "%2$d %1$d", 33, 55);
ASSERT (strcmp (result, "55 33") == 0);
ASSERT (retval == strlen (result));
}
/* Test the support of the POSIX/XSI format strings with positions. */
{
char result[100];
- int retval = my_snprintf (result, sizeof (result), "%2$d %1$d", 33, 55);
+ retval = my_snprintf (result, sizeof (result), "%2$d %1$d", 33, 55);
ASSERT (strcmp (result, "55 33") == 0);
ASSERT (retval == strlen (result));
}