From ca65df023effc7dfdafd8311e41ea9528939627d Mon Sep 17 00:00:00 2001 From: oetiker Date: Mon, 6 Jul 2009 10:03:23 +0000 Subject: [PATCH] add some more brackets just to be sure git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.3@1867 a5681a0c-68f1-0310-ab6d-d61299d08faa --- program/src/rrd_restore.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/program/src/rrd_restore.c b/program/src/rrd_restore.c index 56b8e7ad..6acfa4e0 100644 --- a/program/src/rrd_restore.c +++ b/program/src/rrd_restore.c @@ -957,17 +957,19 @@ static int parse_tag_rrd( else if (xmlStrcmp(child->name, (const xmlChar *) "step") == 0) status = get_ulong_from_node(doc, child, &rrd->stat_head->pdp_step); - else if (xmlStrcmp(child->name, (const xmlChar *) "lastupdate") == 0) + else if (xmlStrcmp(child->name, (const xmlChar *) "lastupdate") == 0) { if (sizeof(time_t) == sizeof(long)) { status = get_long_from_node(doc, child, (long *)&rrd->live_head->last_up); } - else if (sizeof(time_t) == sizeof(long long)) { - status = get_llong_from_node(doc, child, (long long *)&rrd->live_head->last_up); - } - else { - rrd_set_error("can't convert to time_t ...", child->name); - status = -1; + else { if (sizeof(time_t) == sizeof(long long)) { + status = get_llong_from_node(doc, child, (long long *)&rrd->live_head->last_up); + } + else { + rrd_set_error("can't convert to time_t ...", child->name); + status = -1; + } } + } else if (xmlStrcmp(child->name, (const xmlChar *) "ds") == 0) status = parse_tag_ds(doc, child, rrd); else if (xmlStrcmp(child->name, (const xmlChar *) "rra") == 0) -- 2.30.2