aboutsummaryrefslogtreecommitdiff
path: root/src/inspsocket.cpp
diff options
context:
space:
mode:
authorGravatar Peter Powell2018-07-13 00:47:53 +0100
committerGravatar Peter Powell2018-07-18 19:21:45 +0100
commit87e328a1fbfcacafc013ba580d31dd4123f1e7e2 (patch)
tree5e7368079fec41e74cd0c30a6b80fa6da7b9599b /src/inspsocket.cpp
parentRelease v3.0.0 alpha 8. (diff)
Add the family() member to the sockaddrs union.
Diffstat (limited to 'src/inspsocket.cpp')
-rw-r--r--src/inspsocket.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/inspsocket.cpp b/src/inspsocket.cpp
index 42e2640a6..69c427212 100644
--- a/src/inspsocket.cpp
+++ b/src/inspsocket.cpp
@@ -83,12 +83,12 @@ BufferedSocketError BufferedSocket::BeginConnect(const std::string& ipaddr, int
BufferedSocketError BufferedSocket::BeginConnect(const irc::sockets::sockaddrs& dest, const irc::sockets::sockaddrs& bind, unsigned int timeout)
{
if (fd < 0)
- fd = socket(dest.sa.sa_family, SOCK_STREAM, 0);
+ fd = socket(dest.family(), SOCK_STREAM, 0);
if (fd < 0)
return I_ERR_SOCKET;
- if (bind.sa.sa_family != 0)
+ if (bind.family() != 0)
{
if (SocketEngine::Bind(fd, bind) < 0)
return I_ERR_BIND;