]> Savannah Git Hosting - gnulib.git/commitdiff
test-readtokens.c: avoid const-related compilation warnings
authorJim Meyering <meyering@redhat.com>
Thu, 8 Mar 2012 07:25:08 +0000 (08:25 +0100)
committerJim Meyering <meyering@redhat.com>
Thu, 8 Mar 2012 07:25:08 +0000 (08:25 +0100)
* tests/test-readtokens.c: Avoid const-related compilation warnings.

ChangeLog
tests/test-readtokens.c

index a2bb84ee0ebdbb52e48fb977a040575acf4fd408..c6163638ef57ca050c960cd0c2efd711ad6376dd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2012-03-08  Jim Meyering  <meyering@redhat.com>
+
+       test-readtokens.c: avoid const-related compilation warnings
+       * tests/test-readtokens.c: Avoid const-related compilation warnings.
+
 2012-03-07  Jim Meyering  <meyering@redhat.com>
            Bruno Haible  <bruno@clisp.org>
 
index 1ee0c86fd47386256af2eec9ccb42326210b0c2b..f12d39edd477b75969c32e891e55f3a823bab8d1 100644 (file)
@@ -30,7 +30,7 @@
 static void
 basic (void)
 {
-  char *filename = "in.827";
+  char const *filename = "in.827";
   int fd = open (filename, O_CREAT | O_WRONLY, 0600);
   ASSERT (fd >= 0);
   ASSERT (write (fd, "a|b;c+d", 7) == 7);
@@ -77,7 +77,7 @@ main (int argc, char **argv)
 
   if (STREQ (delim, "\\0"))
     {
-      delim = "";
+      delim = (char *) "";
       delim_len = 1;
     }