From 296060417860b2d92913b66a7e60611c6bfe3ae4 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Thu, 23 Feb 2012 22:31:23 +0000 Subject: [PATCH] Add explicit cast for time() ret value To keep all numbers with same sign --- lib/metadata/lv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/metadata/lv.c b/lib/metadata/lv.c index fb17442a5..42dd5a198 100644 --- a/lib/metadata/lv.c +++ b/lib/metadata/lv.c @@ -529,7 +529,7 @@ int lv_set_creation(struct logical_volume *lv, } lv->hostname = hn; - lv->timestamp = timestamp ? : time(NULL); + lv->timestamp = timestamp ? : (uint64_t) time(NULL); return 1; } -- 2.43.5