projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Treewide: cleanup whitespace
[collectd.git]
/
src
/
zookeeper.c
diff --git
a/src/zookeeper.c
b/src/zookeeper.c
index
63ee6c9
..
1eed1fb
100644
(file)
--- a/
src/zookeeper.c
+++ b/
src/zookeeper.c
@@
-29,7
+29,6
@@
#include "plugin.h"
#include <netdb.h>
#include "plugin.h"
#include <netdb.h>
-#include <sys/socket.h>
#include <sys/un.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <sys/un.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
@@
-109,8
+108,8
@@
static int zookeeper_connect (void)
struct addrinfo ai_hints;
struct addrinfo *ai;
struct addrinfo *ai_list;
struct addrinfo ai_hints;
struct addrinfo *ai;
struct addrinfo *ai_list;
- char *host;
- char *port;
+ c
onst c
har *host;
+ c
onst c
har *port;
memset ((void *) &ai_hints, '\0', sizeof (ai_hints));
ai_hints.ai_family = AF_UNSPEC;
memset ((void *) &ai_hints, '\0', sizeof (ai_hints));
ai_hints.ai_family = AF_UNSPEC;
@@
-199,11
+198,6
@@
static int zookeeper_query (char *buffer, size_t buffer_size)
}
buffer_fill += (size_t) status;
}
buffer_fill += (size_t) status;
- if (status == 0)
- {
- /* done reading from the socket */
- break;
- }
} /* while (recv) */
status = 0;
} /* while (recv) */
status = 0;