summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5afde10)
raw | patch | inline | side by side (parent: 5afde10)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Tue, 2 Aug 2016 15:16:58 +0000 (17:16 +0200) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Wed, 3 Aug 2016 08:06:07 +0000 (10:06 +0200) |
.ai_family expects an address family, not a protocol family.
Note that on most platforms these constants are the same, so this
is purely cosmetic.
Note that on most platforms these constants are the same, so this
is purely cosmetic.
src/hddtemp.c | patch | blob | history | |
src/mbmon.c | patch | blob | history | |
src/ntpd.c | patch | blob | history | |
src/olsrd.c | patch | blob | history |
diff --git a/src/hddtemp.c b/src/hddtemp.c
index 1b7ed329a9a088360730abc44fd59eee356da2d5..e7b4d8a10d63aefcc153bb9757ca770ec2e1504d 100644 (file)
--- a/src/hddtemp.c
+++ b/src/hddtemp.c
struct addrinfo ai_hints = {
.ai_flags = AI_ADDRCONFIG,
- .ai_family = PF_UNSPEC,
+ .ai_family = AF_UNSPEC,
.ai_protocol = IPPROTO_TCP,
.ai_socktype = SOCK_STREAM
};
diff --git a/src/mbmon.c b/src/mbmon.c
index 1f0a0d638814bdd2cd31b0255df039d7ca388914..5f398d0c8301fd1701a98c0d1a68695323290487 100644 (file)
--- a/src/mbmon.c
+++ b/src/mbmon.c
port = MBMON_DEF_PORT;
struct addrinfo ai_hints = {
- .ai_family = PF_UNSPEC,
+ .ai_family = AF_UNSPEC,
.ai_flags = AI_ADDRCONFIG,
.ai_protocol = IPPROTO_TCP,
.ai_socktype = SOCK_STREAM
diff --git a/src/ntpd.c b/src/ntpd.c
index e075a208b745790ac011a0efe7e6dbaef34395e9..c3dee22c2d0b656e3ad9e2cb9a8c723acdbb8bbf 100644 (file)
--- a/src/ntpd.c
+++ b/src/ntpd.c
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
diff --git a/src/olsrd.c b/src/olsrd.c
index ac47811ceb4734aae3178cd43eac65c4b03a70a3..7838ebaaa2f90ed96164a19dfba6c37e4bc09591 100644 (file)
--- a/src/olsrd.c
+++ b/src/olsrd.c
FILE *fh;
struct addrinfo ai_hints = {
- .ai_family = PF_UNSPEC,
+ .ai_family = AF_UNSPEC,
.ai_flags = AI_ADDRCONFIG,
.ai_protocol = IPPROTO_TCP,
.ai_socktype = SOCK_STREAM