From: Ruben Kerkhof Date: Wed, 10 Aug 2016 14:02:54 +0000 (+0200) Subject: chrony plugin: fix build on OpenBSD X-Git-Tag: collectd-5.6.0~61 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=3062c779e8105ffe873d29716268a1033f0491fc;p=collectd.git chrony plugin: fix build on OpenBSD time_t is a long long on OpenBSD --- diff --git a/src/chrony.c b/src/chrony.c index 0485036a..f6294e49 100644 --- a/src/chrony.c +++ b/src/chrony.c @@ -452,8 +452,8 @@ chrony_connect(void) if (chrony_set_timeout()) { - ERROR(PLUGIN_NAME ": Error setting timeout to %lds. Errno = %d", - g_chrony_timeout, errno); + ERROR(PLUGIN_NAME ": Error setting timeout to %llds. Errno = %d", + (long long)g_chrony_timeout, errno); return CHRONY_RC_FAIL; } return CHRONY_RC_OK;