projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b343e5
)
chrony plugin: fix build on OpenBSD
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Wed, 10 Aug 2016 14:02:54 +0000
(16:02 +0200)
committer
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Wed, 10 Aug 2016 14:02:54 +0000
(16:02 +0200)
time_t is a long long on OpenBSD
src/chrony.c
patch
|
blob
|
history
diff --git
a/src/chrony.c
b/src/chrony.c
index
0485036
..
f6294e4
100644
(file)
--- 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 %l
l
ds. Errno = %d",
+
(long long)
g_chrony_timeout, errno);
return CHRONY_RC_FAIL;
}
return CHRONY_RC_OK;