From: bert hubert Date: Wed, 2 Apr 2014 21:22:41 +0000 (+0200) Subject: fix enums in commented out code X-Git-Tag: rec-3.6.0-rc1~99 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a579401738f9024d95dd2d38b56ea89eeadae8d0;p=pdns fix enums in commented out code --- diff --git a/pdns/devpollmplexer.cc b/pdns/devpollmplexer.cc index e1cb4c1e0..984a0493e 100644 --- a/pdns/devpollmplexer.cc +++ b/pdns/devpollmplexer.cc @@ -136,7 +136,7 @@ void acceptData(int fd, funcparam_t& parameter) int main() { - Socket s(InterNetwork, Datagram); + Socket s(AF_INET, SOCK_DGRAM); IPEndpoint loc("0.0.0.0", 2000); s.bind(loc); diff --git a/pdns/epollmplexer.cc b/pdns/epollmplexer.cc index b5e2276a3..dcb195fa4 100644 --- a/pdns/epollmplexer.cc +++ b/pdns/epollmplexer.cc @@ -149,7 +149,7 @@ void acceptData(int fd, funcparam_t& parameter) int main() { - Socket s(InterNetwork, Datagram); + Socket s(AF_INET, SOCK_DGRAM); IPEndpoint loc("0.0.0.0", 2000); s.bind(loc); diff --git a/pdns/kqueuemplexer.cc b/pdns/kqueuemplexer.cc index 9d286bd28..6f8922338 100644 --- a/pdns/kqueuemplexer.cc +++ b/pdns/kqueuemplexer.cc @@ -134,7 +134,7 @@ void acceptData(int fd, boost::any& parameter) int main() { - Socket s(InterNetwork, Datagram); + Socket s(AF_INET, SOCK_DGRAM); IPEndpoint loc("0.0.0.0", 2000); s.bind(loc); diff --git a/pdns/pollmplexer.cc b/pdns/pollmplexer.cc index 1613bbbb2..4e6fd49ad 100644 --- a/pdns/pollmplexer.cc +++ b/pdns/pollmplexer.cc @@ -113,7 +113,7 @@ void acceptData(int fd, boost::any& parameter) int main() { - Socket s(InterNetwork, Datagram); + Socket s(AF_INET, SOCK_DGRAM); IPEndpoint loc("0.0.0.0", 2000); s.bind(loc); diff --git a/pdns/portsmplexer.cc b/pdns/portsmplexer.cc index 04c89ca85..db032e995 100644 --- a/pdns/portsmplexer.cc +++ b/pdns/portsmplexer.cc @@ -148,7 +148,7 @@ void acceptData(int fd, boost::any& parameter) int main() { - Socket s(InterNetwork, Datagram); + Socket s(AF_INET, SOCK_DGRAM); IPEndpoint loc("0.0.0.0", 2000); s.bind(loc); diff --git a/pdns/selectmplexer.cc b/pdns/selectmplexer.cc index 437ed3833..99f191ef7 100644 --- a/pdns/selectmplexer.cc +++ b/pdns/selectmplexer.cc @@ -111,7 +111,7 @@ void acceptData(int fd, boost::any& parameter) int main() { - Socket s(InterNetwork, Datagram); + Socket s(AF_INET, SOCK_DGRAM); IPEndpoint loc("0.0.0.0", 2000); s.bind(loc);