[rrd-developers] [PATCH 1/2] fix gcc warning
Tobias Oetiker
tobi at oetiker.ch
Wed Jun 2 06:45:36 CEST 2010
Yesterday Antoine MUSSO wrote:
> 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;
thanks
tobi
>
--
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
http://it.oetiker.ch tobi at oetiker.ch ++41 62 775 9902 / sb: -9900
More information about the rrd-developers
mailing list