From: Sebastian Harl Date: Sat, 24 May 2008 18:32:43 +0000 (+0200) Subject: src/liboconfig/oconfig.c: Declare "c_file" as "const char *". X-Git-Tag: collectd-4.4.1~5^2^2~1 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=ccf62a092bb5f2c010afaab3d1c1e7f25c5e8606;p=collectd.git 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 --- 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) {