Re: [PATCH 1/2] fix gcc warning

Tobias Oetiker <[email protected]>
Newsgroups gmane.comp.db.rrdtool.devel
Message-ID <[email protected]>
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 [email protected] ++41 62 775 9902 / sb: -9900
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.