whitespace

This commit is contained in:
Christopher Faylor
2002-12-12 03:09:38 +00:00
parent 023a6b2aff
commit 6d14741177
8 changed files with 21 additions and 15 deletions

View File

@ -521,6 +521,8 @@ fdsock (int &fd, const char *name, SOCKET soc)
winsock2_active);
fhandler_socket *fh =
(fhandler_socket *) cygheap->fdtab.build_fhandler (fd, FH_SOCKET, name);
if (!fh)
return NULL;
fh->set_io_handle ((HANDLE) soc);
fh->set_flags (O_RDWR | O_BINARY);
fh->set_r_no_interrupt (winsock2_active);
@ -558,12 +560,17 @@ cygwin_socket (int af, int type, int protocol)
name = (type == SOCK_STREAM ? "/dev/streamsocket" : "/dev/dgsocket");
fh = fdsock (fd, name, soc);
if (fh)
if (!fh)
{
closesocket (soc);
res = -1;
}
else
{
fh->set_addr_family (af);
fh->set_socket_type (type);
res = fd;
}
res = fd;
}
done:

View File

@ -527,7 +527,6 @@ public:
}
};
#define MT_INTERFACE user_data->threadinterface
extern "C"