File pacemaker-libcrmcommon-use-correct-argument-type-for-duration.patch of Package pacemaker.10804
commit 1db8425644f8a7c18ba9af6e75e92981b2eef248
Author: Ken Gaillot <kgaillot@redhat.com>
Date: Wed Apr 4 16:15:09 2018 -0500
Low: libcrmcommon: use correct argument type for duration
diff --git a/lib/common/iso8601.c b/lib/common/iso8601.c
index d00085e4d..517c50daf 100644
--- a/lib/common/iso8601.c
+++ b/lib/common/iso8601.c
@@ -468,13 +468,13 @@ crm_time_as_string(crm_time_t * date_time, int flags)
goto done;
} else if (flags & crm_time_seconds) {
- unsigned long long s = crm_time_get_seconds(date_time);
+ long long s = crm_time_get_seconds(date_time);
snprintf(date_s, 32, "%lld", s); /* Durations may not be +ve */
goto done;
} else if (flags & crm_time_epoch) {
- unsigned long long s = crm_time_get_seconds_since_epoch(date_time);
+ long long s = crm_time_get_seconds_since_epoch(date_time);
snprintf(date_s, 32, "%lld", s); /* Durations may not be +ve */
goto done;