]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
- fixed type
authorArvin Schnell <aschnell@suse.de>
Mon, 19 Sep 2011 10:22:37 +0000 (12:22 +0200)
committerArvin Schnell <aschnell@suse.de>
Mon, 19 Sep 2011 10:22:37 +0000 (12:22 +0200)
snapper/Snapshot.cc

index 19899c9e9d430fe6fa7f227b299374a562f6e6e7..ffac62f220a05edf17972b310495310ce2aa14f8 100644 (file)
@@ -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;