tests: avoid compiler warnings
[gnulib.git] / tests / test-unsetenv.c
index 2815cf3..bd312a0 100644 (file)
@@ -43,7 +43,7 @@ main (void)
   char entry[] = "b=2";
 
   /* Test removal when multiple entries present.  */
-  ASSERT (putenv ("a=1") == 0);
+  ASSERT (putenv ((char *) "a=1") == 0);
   ASSERT (putenv (entry) == 0);
   entry[0] = 'a'; /* Unspecified what getenv("a") would be at this point.  */
   ASSERT (unsetenv ("a") == 0); /* Both entries will be removed.  */