summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-06-16 04:21:28 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-06-16 04:21:28 +0000
commit5fc80b5ad45fd3b70ad54dc72f721ef5bf2a0ed1 (patch)
tree28214d9b2d534bfae895a3776dcacc4b21cd43a2 /src
parent14db93e7cfd4f434731305ef6e8832880f642fc5 (diff)
Fix incorrect attempted inline of irc::sockets::sa_size
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11415 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/socket.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/socket.cpp b/src/socket.cpp
index 8b016152d..cdf624321 100644
--- a/src/socket.cpp
+++ b/src/socket.cpp
@@ -326,3 +326,11 @@ int irc::sockets::satoap(const irc::sockets::sockaddrs* sa, std::string& addr, i
return false;
}
+int irc::sockets::sa_size(irc::sockets::sockaddrs& sa)
+{
+ if (sa.sa.sa_family == AF_INET)
+ return sizeof(sa.in4);
+ if (sa.sa.sa_family == AF_INET6)
+ return sizeof(sa.in6);
+ return 0;
+}