]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
use closesocket on sockets.. not close
authorMichael Jerris <mike@jerris.com>
Mon, 22 Jan 2007 16:54:30 +0000 (16:54 +0000)
committerMichael Jerris <mike@jerris.com>
Mon, 22 Jan 2007 16:54:30 +0000 (16:54 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4015 d0543943-73ff-0310-b7d9-9358b9ac24b2

libs/iax/src/iax.c

index 918c48632fda5081aa68dc1b17dca9aa936b7d78..0c923ad0cd9d2e108da8902ef559f8eee37dbc7a 100644 (file)
@@ -949,7 +949,7 @@ int iax_init(char *ip, int preferredportno)
 #ifdef WIN32
            flags = 1;
            if (ioctlsocket(netfd,FIONBIO,(unsigned long *) &flags)) {
-                   _close(netfd);
+                   closesocket(netfd);
                    netfd = -1;
                    DEBU(G "Unable to set non-blocking mode.");
                    IAXERROR "Unable to set non-blocking mode.");