summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0caf170)
raw | patch | inline | side by side (parent: 0caf170)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Mon, 11 Jan 2010 09:06:59 +0000 (09:06 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Mon, 11 Jan 2010 09:06:59 +0000 (09:06 +0000) |
since on freebsd in 64bit mode time_t is 32 bit while long is 64 bit
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.3/program@1997 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.3/program@1997 a5681a0c-68f1-0310-ab6d-d61299d08faa
src/rrd_restore.c | patch | blob | history |
diff --git a/src/rrd_restore.c b/src/rrd_restore.c
index 9f8c45440ecc7aefca7579e633fd3e7b7961ac09..cefdfaea1da699431e1d234256468a9cea04df4b 100644 (file)
--- a/src/rrd_restore.c
+++ b/src/rrd_restore.c
status = get_ulong_from_node(doc, child,
&rrd->stat_head->pdp_step);
else if (xmlStrcmp(child->name, (const xmlChar *) "lastupdate") == 0) {
- if (sizeof(time_t) == sizeof(long)) {
+ if (sizeof(time_t) == sizeof(int)) {
status = get_long_from_node(doc, child, (long *)&rrd->live_head->last_up);
}
else { if (sizeof(time_t) == sizeof(long long)) {