[PATCH 1/2] fix gcc warning

Antoine Musso <[email protected]>
Newsgroups gmane.comp.db.rrdtool.devel
Message-ID <[email protected]>
gcc 4.0.1 produced a warning and require same types. Warning shown was:
"assignement discards qualifers from pointer target type"
---
 src/rrd_client.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/rrd_client.c b/src/rrd_client.c
index b3294f4..d292281 100644
--- a/src/rrd_client.c
+++ b/src/rrd_client.c
@@ -828,7 +828,7 @@ int rrdc_fetch (const char *filename, /* {{{ */
   size_t buffer_size;
   rrdc_response_t *res;
   char path_buffer[PATH_MAX];
-  char *path_ptr;
+  const char *path_ptr;
 
   char *str_tmp;
   unsigned long flush_version;
-- 
1.7.0.4
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.