diff options
author | Jan Dubois <jand@activestate.com> | 2007-06-25 10:13:04 -0700 |
---|---|---|
committer | Steve Hay <SteveHay@planit.com> | 2007-06-26 07:38:05 +0000 |
commit | cf46c829c2d2e258bbc767318634dbc5a53e40ee (patch) | |
tree | b69a28e5cd0487547826af390906303a89447952 | |
parent | fa902580255ea6c1205d28b30fdac4cd26771a62 (diff) | |
download | perl-cf46c829c2d2e258bbc767318634dbc5a53e40ee.tar.gz |
[PATCH] Remove dead code from win32/win32sck.c
From: "Jan Dubois" <jand@activestate.com>
Date: Mon, 25 Jun 2007 17:13:04 -0700
Message-ID: <02bb01c7b786$c42099c0$4c61cd40$@com>
Subject: RE: [PATCH] Remove dead code from win32/win32sck.c
From: "Jan Dubois" <jand@activestate.com>
Date: Mon, 25 Jun 2007 17:26:15 -0700
Message-ID: <02c801c7b788$9bf7ebe0$d3e7c3a0$@com>
p4raw-id: //depot/perl@31469
-rw-r--r-- | win32/win32sck.c | 17 | ||||
-rw-r--r-- | win32/wincesck.c | 9 |
2 files changed, 1 insertions, 25 deletions
diff --git a/win32/win32sck.c b/win32/win32sck.c index 8656c0bd67..26bef5ed24 100644 --- a/win32/win32sck.c +++ b/win32/win32sck.c @@ -37,22 +37,11 @@ # define TO_SOCKET(x) (x) #endif /* USE_SOCKETS_AS_HANDLES */ -#if defined(USE_ITHREADS) #define StartSockets() \ STMT_START { \ if (!wsock_started) \ start_sockets(); \ - set_socktype(); \ } STMT_END -#else -#define StartSockets() \ - STMT_START { \ - if (!wsock_started) { \ - start_sockets(); \ - set_socktype(); \ - } \ - } STMT_END -#endif #define SOCKET_TEST(x, y) \ STMT_START { \ @@ -98,12 +87,6 @@ start_sockets(void) wsock_started = 1; } -void -set_socktype(void) -{ -} - - #ifndef USE_SOCKETS_AS_HANDLES #undef fdopen FILE * diff --git a/win32/wincesck.c b/win32/wincesck.c index 76d56fc4b9..067b257ea0 100644 --- a/win32/wincesck.c +++ b/win32/wincesck.c @@ -59,10 +59,8 @@ XCE_EXPORT struct protoent *xcegetprotobynumber(int number); #define StartSockets() \ STMT_START { \ - if (!wsock_started) { \ + if (!wsock_started) \ start_sockets(); \ - set_socktype(); \ - } \ } STMT_END #define SOCKET_TEST(x, y) \ @@ -109,11 +107,6 @@ start_sockets(void) wsock_started = 1; } -void -set_socktype(void) -{ -} - u_long win32_htonl(u_long hostlong) { |