]> git.ozlabs.org Git - ccan/commitdiff
ccan/noerr: fix compiler warning with const strings.
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 21 Jul 2011 05:20:00 +0000 (14:50 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 21 Jul 2011 05:20:00 +0000 (14:50 +0930)
ccan/noerr/test/run.c

index 503ba81c52fe74e3f48b2a40d54bb9288e9b9d71..d5d48584952abfcd82401a7bd45e16ca9fc0af22 100644 (file)
@@ -9,7 +9,7 @@
 
 int main(int argc, char *argv[])
 {
-       char *name = "noerr.file";
+       const char *name = "noerr.file";
        int fd;
        FILE *fp;