diff options
author | Ruediger Meier | 2017-07-12 21:41:50 +0200 |
---|---|---|
committer | Ruediger Meier | 2017-07-18 11:06:52 +0200 |
commit | fc77d25f97043f546eb24f1061817311bd80e8ab (patch) | |
tree | 07d0e753d3f528a11b41329254f1d844f797dcb6 /lib/parse-date.y | |
parent | tests: remove UUIDs with time overflow from uuidparse (diff) | |
download | kernel-qcow2-util-linux-fc77d25f97043f546eb24f1061817311bd80e8ab.tar.gz kernel-qcow2-util-linux-fc77d25f97043f546eb24f1061817311bd80e8ab.tar.xz kernel-qcow2-util-linux-fc77d25f97043f546eb24f1061817311bd80e8ab.zip |
parse-date: fix printf format
warning on 32bit systems:
../lib/parse-date.y: In function 'parse_date':
../lib/parse-date.y:1509:7: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 'intmax_t' [-Wformat=]
abs_time_zone_min);
^
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Diffstat (limited to 'lib/parse-date.y')
-rw-r--r-- | lib/parse-date.y | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/parse-date.y b/lib/parse-date.y index 5e966f0c3..bb5abb5d4 100644 --- a/lib/parse-date.y +++ b/lib/parse-date.y @@ -1503,7 +1503,7 @@ int parse_date(struct timespec *result, char const *p, if (!tz_was_altered) tz0 = get_tz (tz0buf); - sprintf (tz1buf, "XXX%s%ld:%02d", + sprintf (tz1buf, "XXX%s%jd:%02d", &"-"[time_zone < 0], abs_time_zone_hour, abs_time_zone_min); |