From: Jan Dubois Date: Mon, 25 Jun 2007 17:13:04 +0000 (-0700) Subject: [PATCH] Remove dead code from win32/win32sck.c X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=cf46c829c2d2e258bbc767318634dbc5a53e40ee;p=p5sagit%2Fp5-mst-13.2.git [PATCH] Remove dead code from win32/win32sck.c From: "Jan Dubois" 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" Date: Mon, 25 Jun 2007 17:26:15 -0700 Message-ID: <02c801c7b788$9bf7ebe0$d3e7c3a0$@com> p4raw-id: //depot/perl@31469 --- diff --git a/win32/win32sck.c b/win32/win32sck.c index 8656c0b..26bef5e 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 76d56fc..067b257 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) {