X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fbind.c;h=e09da1927e71018438405176ca71f806ea33b023;hb=254ce1279f90858ab3d90b885defb95af3d6d7c1;hp=1a06a4d5beb4d78d05acd01a3566faecc15471a8;hpb=7e905b5dbb59d0ba43503896daf2a8dbf102eaba;p=collectd.git diff --git a/src/bind.c b/src/bind.c index 1a06a4d5..e09da192 100644 --- a/src/bind.c +++ b/src/bind.c @@ -380,9 +380,9 @@ static int bind_xml_read_counter (xmlDoc *doc, xmlNode *node, xmlFree(str_ptr); if (str_ptr == end_ptr || errno) { - if (errno && value == LLONG_MIN) + if (errno && (value < 0)) ERROR ("bind plugin: bind_xml_read_counter: strtoll failed with underflow."); - else if (errno && value == LLONG_MAX) + else if (errno && (value > 0)) ERROR ("bind plugin: bind_xml_read_counter: strtoll failed with overflow."); else ERROR ("bind plugin: bind_xml_read_counter: strtoll failed.");