treewide: Use AF_UNSPEC consistently
[collectd.git] / src / ntpd.c
index e075a20..c3dee22 100644 (file)
@@ -364,7 +364,7 @@ static int ntpd_connect (void)
                port = NTPD_DEFAULT_PORT;
 
        struct addrinfo ai_hints = {
-               .ai_family   = PF_UNSPEC,
+               .ai_family   = AF_UNSPEC,
                .ai_flags    = AI_ADDRCONFIG,
                .ai_protocol = IPPROTO_UDP,
                .ai_socktype = SOCK_DGRAM