New module 'logf'.
[gnulib.git] / tests / test-snprintf.c
index 18efed5..2b5a54c 100644 (file)
@@ -63,7 +63,7 @@ main (int argc, char *argv[])
   /* 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));
   }