From: Maksym Sobolyev Date: Wed, 17 Sep 2014 00:50:56 +0000 (-0700) Subject: Remove utility function rrd_get_double(), it's been replaced X-Git-Tag: v1.5.0-rc1~6^2~22 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dc94e2ab495c61e69834537508f518fb92258c7f;p=thirdparty%2Frrdtool-1.x.git Remove utility function rrd_get_double(), it's been replaced by the rrd_strtodbl(). --- diff --git a/src/rrd_update.c b/src/rrd_update.c index 04ae6256..1f9d16c8 100644 --- a/src/rrd_update.c +++ b/src/rrd_update.c @@ -1343,25 +1343,6 @@ static int get_time_from_reading( return 0; } -static int -rrd_get_double(const char *cp, double *rval) -{ - char *endptr; - - errno = 0; - *rval = strtod(cp, &endptr); - if (errno) { - rrd_set_error("converting '%s' to float: %s", cp, rrd_strerror(errno)); - return -1; - } - if (endptr[0] != '\0') { - rrd_set_error("conversion of '%s' to float not complete: tail '%s'", - cp, endptr); - return -1; - } - return 0; -} - /* * Update pdp_new by interpreting the updvals according to the DS type * (COUNTER, GAUGE, etc.).