From ccf62a092bb5f2c010afaab3d1c1e7f25c5e8606 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Sat, 24 May 2008 20:32:43 +0200 Subject: [PATCH] src/liboconfig/oconfig.c: Declare "c_file" as "const char *". 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 Signed-off-by: Florian Forster --- src/liboconfig/oconfig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/liboconfig/oconfig.c b/src/liboconfig/oconfig.c index 8cc3c8ab..79b53aec 100644 --- a/src/liboconfig/oconfig.c +++ b/src/liboconfig/oconfig.c @@ -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) { -- 2.30.2