From: Dr. Stephen Henson Date: Tue, 18 Aug 2009 11:14:12 +0000 (+0000) Subject: Stop unused variable warning on WIN32 et al. X-Git-Tag: OpenSSL_1_0_0-beta4~106 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=209abea1db1c8332fc44ffe1775ccfa9013ff4d1;p=openssl Stop unused variable warning on WIN32 et al. --- diff --git a/apps/s_server.c b/apps/s_server.c index 9ccf2f0a44..a5b1e91471 100644 --- a/apps/s_server.c +++ b/apps/s_server.c @@ -1750,9 +1750,11 @@ static int sv_body(char *hostname, int s, unsigned char *context) unsigned long l; SSL *con=NULL; BIO *sbio; - struct timeval timeout, *timeoutp; + struct timeval timeout; #if defined(OPENSSL_SYS_WINDOWS) || defined(OPENSSL_SYS_MSDOS) || defined(OPENSSL_SYS_NETWARE) || defined(OPENSSL_SYS_BEOS_R5) struct timeval tv; +#else + struct timeval *timeoutp; #endif if ((buf=OPENSSL_malloc(bufsize)) == NULL)