From: Maksym Sobolyev Date: Wed, 17 Sep 2014 00:56:58 +0000 (-0700) Subject: Const'ify the last argument of the rrd_strtodbl() properly. X-Git-Tag: v1.5.0-rc1~6^2~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dffd176078118456b0b0f3261b04cfb141e6dd44;p=thirdparty%2Frrdtool-1.x.git Const'ify the last argument of the rrd_strtodbl() properly. --- diff --git a/src/rrd_strtod.c b/src/rrd_strtod.c index c988f506..0e9e6398 100644 --- a/src/rrd_strtod.c +++ b/src/rrd_strtod.c @@ -54,7 +54,7 @@ static int parse_special(const char *str, double *d) { /* returns 2 on success */ /* i.e. if the whole string has been converted to a double successfully */ unsigned int rrd_strtodbl -(const char *str, char **endptr, double *dbl, char *error) { +(const char *str, char **endptr, double *dbl, const char *error) { char *local_endptr = (char *)str; *dbl = rrd_strtod( str, &local_endptr ); diff --git a/src/rrd_strtod.h b/src/rrd_strtod.h index b9d9dcb0..b2f1e8c7 100644 --- a/src/rrd_strtod.h +++ b/src/rrd_strtod.h @@ -1,2 +1,2 @@ -unsigned int rrd_strtodbl(const char * str, char ** endptr, double * dbl, char * error); +unsigned int rrd_strtodbl(const char * str, char ** endptr, double * dbl, const char * error); double rrd_strtod(const char *str, char **endptr);