xmlFree(str_ptr);
if (str_ptr == end_ptr) {
- rrd_set_error("get_long_from_node: Cannot parse buffer as int: %s",
+ rrd_set_error("get_long_from_node: Cannot parse buffer as long: %s",
str_ptr);
return (-1);
}
str_ptr = (char *) xmlNodeListGetString(doc, node->xmlChildrenNode, 1);
if (str_ptr == NULL) {
- rrd_set_error("get_long_from_node: xmlNodeListGetString failed.");
+ rrd_set_error("get_ulong_from_node: xmlNodeListGetString failed.");
return (-1);
}
xmlFree(str_ptr);
if (str_ptr == end_ptr) {
- rrd_set_error("get_long_from_node: Cannot parse buffer as int: %s",
+ rrd_set_error("get_ulong_from_node: Cannot parse buffer as unsigned long: %s",
str_ptr);
return (-1);
}
*value = temp;
return (0);
-} /* int get_long_from_node */
+} /* int get_ulong_from_node */
static int get_double_from_node(
xmlDoc * doc,