From 3062c779e8105ffe873d29716268a1033f0491fc Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Wed, 10 Aug 2016 16:02:54 +0200 Subject: [PATCH] chrony plugin: fix build on OpenBSD time_t is a long long on OpenBSD --- src/chrony.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.30.2