From 4789b3f6536ef8267c79c7cb3ee6678546c2150b Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 1 Aug 2006 10:42:22 +0000 Subject: AF_INET -> define to AF_FAMILY, will be either AF_INET or AF_INET6 git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4610 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/inspsocket.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/inspsocket.cpp') diff --git a/src/inspsocket.cpp b/src/inspsocket.cpp index 2d49c19db..66ba5c58e 100644 --- a/src/inspsocket.cpp +++ b/src/inspsocket.cpp @@ -215,7 +215,7 @@ bool InspSocket::BindAddr() { log(DEBUG,"Found an IP to bind to: %s",IP.c_str()); s.sin_addr = n; - s.sin_family = AF_INET; + s.sin_family = AF_FAMILY; if (bind(this->fd,(struct sockaddr*)&s,sizeof(s)) < 0) { log(DEBUG,"Cant bind()"); @@ -241,7 +241,7 @@ bool InspSocket::BindAddr() bool InspSocket::DoConnect() { log(DEBUG,"In DoConnect()"); - if ((this->fd = socket(AF_INET, SOCK_STREAM, 0)) == -1) + if ((this->fd = socket(AF_FAMILY, SOCK_STREAM, 0)) == -1) { log(DEBUG,"Cant socket()"); this->state = I_ERROR; @@ -255,7 +255,7 @@ bool InspSocket::DoConnect() log(DEBUG,"Part 2 DoConnect() %s",this->IP); inet_aton(this->IP,&addy); - addr.sin_family = AF_INET; + addr.sin_family = AF_FAMILY; addr.sin_addr = addy; addr.sin_port = htons(this->port); -- cgit v1.3.1-10-gc9f91