From: Florian Forster Date: Wed, 1 Jul 2009 13:39:11 +0000 (+0200) Subject: gmond plugin: Use `strtoull' to parse counter values. X-Git-Tag: collectd-4.7.2~6 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0a3958efcdda5d3c639a5b74982b796ea87df2b6;p=collectd.git gmond plugin: Use `strtoull' to parse counter values. Instead of `strtoll'. --- diff --git a/src/gmond.c b/src/gmond.c index aeb36c18..006f5b8c 100644 --- a/src/gmond.c +++ b/src/gmond.c @@ -595,7 +595,7 @@ static int mc_handle_value_msg (Ganglia_value_msg *msg) /* {{{ */ endptr = NULL; errno = 0; - value_counter.counter = (counter_t) strtoll (msg_string.str, + value_counter.counter = (counter_t) strtoull (msg_string.str, &endptr, /* base = */ 0); if ((endptr == msg_string.str) || (errno != 0)) value_counter.counter = -1;