projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
collectctl: define LOCALSTATEDIR if not defined
[collectd.git]
/
src
/
zookeeper.c
diff --git
a/src/zookeeper.c
b/src/zookeeper.c
index
a3b7362
..
8417485
100644
(file)
--- a/
src/zookeeper.c
+++ b/
src/zookeeper.c
@@
-25,6
+25,7
@@
**/
#include "collectd.h"
**/
#include "collectd.h"
+
#include "common.h"
#include "plugin.h"
#include "common.h"
#include "plugin.h"
@@
-105,7
+106,6
@@
static int zookeeper_connect (void)
{
int sk = -1;
int status;
{
int sk = -1;
int status;
- struct addrinfo *ai;
struct addrinfo *ai_list;
const char *host;
const char *port;
struct addrinfo *ai_list;
const char *host;
const char *port;
@@
-129,7
+129,7
@@
static int zookeeper_connect (void)
return (-1);
}
return (-1);
}
- for (ai = ai_list; ai != NULL; ai = ai->ai_next)
+ for (
struct addrinfo *
ai = ai_list; ai != NULL; ai = ai->ai_next)
{
sk = socket (ai->ai_family, SOCK_STREAM, 0);
if (sk < 0)
{
sk = socket (ai->ai_family, SOCK_STREAM, 0);
if (sk < 0)