From: Arvin Schnell Date: Mon, 19 Sep 2011 10:22:37 +0000 (+0200) Subject: - fixed type X-Git-Tag: v0.1.3~287 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=a602876affa9ea3ff67f34b52d747780926b4f26;p=thirdparty%2Fsnapper.git - fixed type --- diff --git a/snapper/Snapshot.cc b/snapper/Snapshot.cc index 19899c9e..ffac62f2 100644 --- a/snapper/Snapshot.cc +++ b/snapper/Snapshot.cc @@ -160,8 +160,8 @@ namespace snapper continue; } - unsigned int date; - if (!getChildValue(node, "date", tmp) || (date = scan_datetime(tmp, true)) == -1) + time_t date; + if (!getChildValue(node, "date", tmp) || (date = scan_datetime(tmp, true)) == (time_t)(-1)) { y2err("date missing or invalid. not adding snapshot " << *it1); continue;