projects
/
rrdtool.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix comments and error messages in rrd_restore patch
[rrdtool.git]
/
src
/
rrd_restore.c
diff --git
a/src/rrd_restore.c
b/src/rrd_restore.c
index
59199a7
..
369f7bd
100644
(file)
--- a/
src/rrd_restore.c
+++ b/
src/rrd_restore.c
@@
-115,7
+115,7
@@
static int get_long_from_node(
xmlFree(str_ptr);
if (str_ptr == end_ptr) {
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);
return (-1);
}
@@
-136,7
+136,7
@@
static int get_ulong_from_node(
str_ptr = (char *) xmlNodeListGetString(doc, node->xmlChildrenNode, 1);
if (str_ptr == NULL) {
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_
u
long_from_node: xmlNodeListGetString failed.");
return (-1);
}
return (-1);
}
@@
-145,7
+145,7
@@
static int get_ulong_from_node(
xmlFree(str_ptr);
if (str_ptr == end_ptr) {
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);
}
str_ptr);
return (-1);
}
@@
-153,7
+153,7
@@
static int get_ulong_from_node(
*value = temp;
return (0);
*value = temp;
return (0);
-} /* int get_long_from_node */
+} /* int get_
u
long_from_node */
static int get_double_from_node(
xmlDoc * doc,
static int get_double_from_node(
xmlDoc * doc,