[rrd-developers] [PATCH 1/2] fix gcc warning

Antoine MUSSO amusso+rrd at free.fr
Tue Jun 1 21:16:37 CEST 2010


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



More information about the rrd-developers mailing list