diff options
author | Bodo Möller <bodo@openssl.org> | 2000-03-14 16:35:36 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2000-03-14 16:35:36 +0000 |
commit | cc497fb04a4baf1b45a653dc0db21ba1efb698dc (patch) | |
tree | 58ef0431e0bb2445cd0c6f8aa49f514876973975 /apps/s_socket.c | |
parent | 98ff3937bb8f1735d0bc29d530674adcaacf50d1 (diff) | |
download | openssl-new-cc497fb04a4baf1b45a653dc0db21ba1efb698dc.tar.gz |
Avoid a warning.
Diffstat (limited to 'apps/s_socket.c')
-rw-r--r-- | apps/s_socket.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/s_socket.c b/apps/s_socket.c index ba10d76b28..081b1a57d1 100644 --- a/apps/s_socket.c +++ b/apps/s_socket.c @@ -80,7 +80,9 @@ typedef unsigned int u_int; #include <openssl/ssl.h> static struct hostent *GetHostByName(char *name); +#ifdef WINDOWS static void sock_cleanup(void); +#endif static int sock_init(void); static int init_client_ip(int *sock,unsigned char ip[4], int port); static int init_server(int *sock, int port); @@ -130,17 +132,17 @@ static BOOL CALLBACK enumproc(HWND hwnd,LPARAM lParam) #endif /* WIN32 */ #endif /* WINDOWS */ +#ifdef WINDOWS static void sock_cleanup(void) { -#ifdef WINDOWS if (wsa_init_done) { wsa_init_done=0; WSACancelBlockingCall(); WSACleanup(); } -#endif } +#endif static int sock_init(void) { |