summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2016-03-07 18:12:26 +0100
committerZdenek Kabelac <zkabelac@redhat.com>2016-03-10 18:38:54 +0100
commit8e9deb2e701d495819d0a8c75f3a5e6c4240ad48 (patch)
treeae41942210f375d56820b3bb839d8afb837567cc
parent5aade9c402e2195bc1742509300983b0d77f33e8 (diff)
downloadlvm2-8e9deb2e701d495819d0a8c75f3a5e6c4240ad48.tar.gz
gcc: cast time_t to 64bit
Value is printed as uint64, so make sure right type is passed on all platforms. Fixes gcc warning on some 32bit platforms.
-rw-r--r--lib/format_text/export.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/format_text/export.c b/lib/format_text/export.c
index 90fb0443a..c0af3fafb 100644
--- a/lib/format_text/export.c
+++ b/lib/format_text/export.c
@@ -664,7 +664,7 @@ static int _print_timestamp(struct formatter *f,
"%Y-%m-%d %T %z", local_tm))
buf[0] = 0;
- outfc(f, buf, "%s = %" PRIu64, name, ts);
+ outfc(f, buf, "%s = %" PRIu64, name, (uint64_t) ts);
}
return 1;