projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
uuid plugin: only look in /sys on Linux
[collectd.git]
/
src
/
ntpd.c
diff --git
a/src/ntpd.c
b/src/ntpd.c
index
e075a20
..
02c9f6d
100644
(file)
--- a/
src/ntpd.c
+++ b/
src/ntpd.c
@@
-28,6
+28,7
@@
#define _BSD_SOURCE /* For NI_MAXHOST */
#include "collectd.h"
#define _BSD_SOURCE /* For NI_MAXHOST */
#include "collectd.h"
+
#include "common.h"
#include "plugin.h"
#include "configfile.h"
#include "common.h"
#include "plugin.h"
#include "configfile.h"
@@
-364,7
+365,7
@@
static int ntpd_connect (void)
port = NTPD_DEFAULT_PORT;
struct addrinfo ai_hints = {
port = NTPD_DEFAULT_PORT;
struct addrinfo ai_hints = {
- .ai_family =
P
F_UNSPEC,
+ .ai_family =
A
F_UNSPEC,
.ai_flags = AI_ADDRCONFIG,
.ai_protocol = IPPROTO_UDP,
.ai_socktype = SOCK_DGRAM
.ai_flags = AI_ADDRCONFIG,
.ai_protocol = IPPROTO_UDP,
.ai_socktype = SOCK_DGRAM