[collectd] [PATCH] config.c: Declare "c_file" as "const char *".

Sebastian Harl sh at tokkee.org
Sat May 24 20:32:43 CEST 2008


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 at 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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20080524/6a0e5dc0/attachment.pgp 


More information about the collectd mailing list