1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* win32/win32.c (StartSockets): iSockOpt is no longer used.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8735 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2005-07-08 10:55:29 +00:00
parent cff37c6dcc
commit 682d1bb068

View file

@ -1982,8 +1982,7 @@ StartSockets(void)
{ {
WORD version; WORD version;
WSADATA retdata; WSADATA retdata;
int iSockOpt;
// //
// initalize the winsock interface and insure that it's // initalize the winsock interface and insure that it's
// cleaned up at exit. // cleaned up at exit.
@ -2262,7 +2261,6 @@ rb_w32_shutdown(int s, int how)
static SOCKET static SOCKET
open_ifs_socket(int af, int type, int protocol) open_ifs_socket(int af, int type, int protocol)
{ {
char *s;
unsigned long proto_buffers_len = 0; unsigned long proto_buffers_len = 0;
int error_code; int error_code;
SOCKET out = INVALID_SOCKET; SOCKET out = INVALID_SOCKET;
@ -2280,8 +2278,6 @@ open_ifs_socket(int af, int type, int protocol)
if (protocols_available != SOCKET_ERROR) { if (protocols_available != SOCKET_ERROR) {
int i; int i;
for (i = 0; i < protocols_available; i++) { for (i = 0; i < protocols_available; i++) {
WSAPROTOCOL_INFO proto_info;
if ((af != AF_UNSPEC && af != proto_buffers[i].iAddressFamily) || if ((af != AF_UNSPEC && af != proto_buffers[i].iAddressFamily) ||
(type != proto_buffers[i].iSocketType) || (type != proto_buffers[i].iSocketType) ||
(protocol != 0 && protocol != proto_buffers[i].iProtocol)) (protocol != 0 && protocol != proto_buffers[i].iProtocol))