Skip to contentSkip to conversation

LVM2/lib/metadata lv.c

PATCH [email protected] 1 participant 1 message Feb 23, 2012

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: zkabelac at sourceware.org 2012-02-23 22:31:23

Modified files:
lib/metadata : lv.c

Log message:
Add explicit cast for time() ret value

To keep all numbers with same sign

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/metadata/lv.c.diff?cvsroot=lvm2&r1=1.37&r2=1.38

lib/metadata/lv.c +1 -1
@@ -529,7 +529,7 @@
 	}
 
 	lv->hostname = hn;
-	lv->timestamp = timestamp ? : time(NULL);
+	lv->timestamp = timestamp ? : (uint64_t) time(NULL);
 
 	return 1;
 }