[prev in list] [next in list] [prev in thread] [next in thread]
List: collectd
Subject: [collectd] [PATCH] config.c: Declare "c_file" as "const char *".
From: Sebastian Harl <sh () tokkee ! org>
Date: 2008-05-24 18:32:43
Message-ID: 20080524183243.GC24138 () albany ! tokkee ! org
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
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>
---
src/liboconfig/oconfig.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/liboconfig/oconfig.c b/src/liboconfig/oconfig.c
index 8cc3c8a..79b53ae 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)
{
--
1.5.5.1.316.g377d9
["signature.asc" (application/pgp-signature)]
_______________________________________________
collectd mailing list
collectd@verplant.org
http://mailman.verplant.org/listinfo/collectd
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic