From d548109b060e16a3ac8975d92ffcafaa07ed826f Mon Sep 17 00:00:00 2001 From: oetiker Date: Wed, 15 Apr 2009 07:05:58 +0000 Subject: [PATCH] fix comments and error messages in rrd_restore patch git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.3/program@1793 a5681a0c-68f1-0310-ab6d-d61299d08faa --- src/rrd_restore.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/rrd_restore.c b/src/rrd_restore.c index 79f8042..962b64c 100644 --- a/src/rrd_restore.c +++ b/src/rrd_restore.c @@ -111,7 +111,7 @@ static int get_long_from_node( 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); } @@ -132,7 +132,7 @@ static int get_ulong_from_node( 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); } @@ -141,7 +141,7 @@ static int get_ulong_from_node( 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); } @@ -149,7 +149,7 @@ static int get_ulong_from_node( *value = temp; return (0); -} /* int get_long_from_node */ +} /* int get_ulong_from_node */ static int get_double_from_node( xmlDoc * doc, -- 2.30.2