projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
treewide: stop checking for AI_ADDRCONFIG
[collectd.git]
/
src
/
write_sensu.c
diff --git
a/src/write_sensu.c
b/src/write_sensu.c
index
d37792b
..
99fca17
100644
(file)
--- a/
src/write_sensu.c
+++ b/
src/write_sensu.c
@@
-115,9
+115,7
@@
static int sensu_connect(struct sensu_host *host) /* {{{ */
host->res = NULL;
hints.ai_family = AF_INET;
hints.ai_socktype = SOCK_STREAM;
host->res = NULL;
hints.ai_family = AF_INET;
hints.ai_socktype = SOCK_STREAM;
-#ifdef AI_ADDRCONFIG
- hints.ai_flags |= AI_ADDRCONFIG;
-#endif
+ hints.ai_flags = AI_ADDRCONFIG;
node = (host->node != NULL) ? host->node : SENSU_HOST;
service = (host->service != NULL) ? host->service : SENSU_PORT;
node = (host->node != NULL) ? host->node : SENSU_HOST;
service = (host->service != NULL) ? host->service : SENSU_PORT;