summaryrefslogtreecommitdiffstats
path: root/win32
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-07-08 10:55:29 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-07-08 10:55:29 +0000
commitf3ddcbc44213b0f734b9e54c3684e8dff93afa1c (patch)
treeb20622add0d895673585a120abb168dc09691060 /win32
parent4e165f5425f4097a333b9eff630d12bee70bd3d3 (diff)
downloadruby-f3ddcbc44213b0f734b9e54c3684e8dff93afa1c.tar.gz
ruby-f3ddcbc44213b0f734b9e54c3684e8dff93afa1c.tar.xz
ruby-f3ddcbc44213b0f734b9e54c3684e8dff93afa1c.zip
* win32/win32.c (StartSockets): iSockOpt is no longer used.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8735 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32')
-rw-r--r--win32/win32.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/win32/win32.c b/win32/win32.c
index c8393e94c..476306b95 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -1982,8 +1982,7 @@ StartSockets(void)
{
WORD version;
WSADATA retdata;
- int iSockOpt;
-
+
//
// initalize the winsock interface and insure that it's
// cleaned up at exit.
@@ -2262,7 +2261,6 @@ rb_w32_shutdown(int s, int how)
static SOCKET
open_ifs_socket(int af, int type, int protocol)
{
- char *s;
unsigned long proto_buffers_len = 0;
int error_code;
SOCKET out = INVALID_SOCKET;
@@ -2280,8 +2278,6 @@ open_ifs_socket(int af, int type, int protocol)
if (protocols_available != SOCKET_ERROR) {
int i;
for (i = 0; i < protocols_available; i++) {
- WSAPROTOCOL_INFO proto_info;
-
if ((af != AF_UNSPEC && af != proto_buffers[i].iAddressFamily) ||
(type != proto_buffers[i].iSocketType) ||
(protocol != 0 && protocol != proto_buffers[i].iProtocol))