projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
uuid plugin: make it work on OSX
[collectd.git]
/
src
/
powerdns.c
diff --git
a/src/powerdns.c
b/src/powerdns.c
index
f72bd40
..
958a341
100644
(file)
--- a/
src/powerdns.c
+++ b/
src/powerdns.c
@@
-25,6
+25,7
@@
**/
#include "collectd.h"
**/
#include "collectd.h"
+
#include "common.h"
#include "plugin.h"
#include "configfile.h"
#include "common.h"
#include "plugin.h"
#include "configfile.h"
@@
-375,7
+376,7
@@
static int powerdns_get_data_dgram (list_item_t *item, /* {{{ */
char *buffer = NULL;
size_t buffer_size = 0;
char *buffer = NULL;
size_t buffer_size = 0;
- struct sockaddr_un sa_unix;
+ struct sockaddr_un sa_unix
= { 0 }
;
struct timeval stv_timeout;
cdtime_t cdt_timeout;
struct timeval stv_timeout;
cdtime_t cdt_timeout;
@@
-387,7
+388,6
@@
static int powerdns_get_data_dgram (list_item_t *item, /* {{{ */
return (-1);
}
return (-1);
}
- memset (&sa_unix, 0, sizeof (sa_unix));
sa_unix.sun_family = AF_UNIX;
sstrncpy (sa_unix.sun_path,
(local_sockpath != NULL) ? local_sockpath : PDNS_LOCAL_SOCKPATH,
sa_unix.sun_family = AF_UNIX;
sstrncpy (sa_unix.sun_path,
(local_sockpath != NULL) ? local_sockpath : PDNS_LOCAL_SOCKPATH,