Code

Fix failing tests after 6fd0d25
[collectd.git] / src / olsrd.c
index 976793fe38fbc86856346df85050aa0f56be0104..0af32dc18bfb2f9cec29be73d4f8d214befeec9d 100644 (file)
@@ -25,6 +25,7 @@
  **/
 
 #include "collectd.h"
+
 #include "common.h"
 #include "plugin.h"
 
@@ -154,10 +155,8 @@ static FILE *olsrd_connect (void) /* {{{ */
 
   FILE *fh;
 
-  ai_list = NULL;
-
   struct addrinfo ai_hints = {
-    .ai_family   = PF_UNSPEC,
+    .ai_family   = AF_UNSPEC,
     .ai_flags    = AI_ADDRCONFIG,
     .ai_protocol = IPPROTO_TCP,
     .ai_socktype = SOCK_STREAM