Code

src/liboconfig/oconfig.c: Declare "c_file" as "const char *".
authorSebastian Harl <sh@tokkee.org>
Sat, 24 May 2008 18:32:43 +0000 (20:32 +0200)
committerFlorian Forster <octo@huhu.verplant.org>
Tue, 27 May 2008 11:15:25 +0000 (13:15 +0200)
This fixes an "assignment discards qualifiers from pointer target type"
warning. That string stores the name of the config file which is not
going to be modified by liboconfig.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
src/liboconfig/oconfig.c

index 8cc3c8abc616b640e0d45a1eb672c60d2d47df1d..79b53aec8825f858c87d4b83682b9b99450496be 100644 (file)
@@ -27,7 +27,7 @@
 extern FILE *yyin;
 
 oconfig_item_t *ci_root;
-char           *c_file;
+const char     *c_file;
 
 static void yyset_in  (FILE *fd)
 {