From: Ben Laurie Date: Thu, 4 Oct 2012 15:03:08 +0000 (+0000) Subject: Fix warning (hope this doesn't break other platforms, there's a twisty X-Git-Tag: OpenSSL_1_0_0k~43 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=92b2530acd3bbf50eb8b9361addf3fc9a2d08411;p=oweals%2Fopenssl.git Fix warning (hope this doesn't break other platforms, there's a twisty little maze of #ifs, all different). --- diff --git a/crypto/bio/bss_dgram.c b/crypto/bio/bss_dgram.c index bb64e88a4c..a223b8367c 100644 --- a/crypto/bio/bss_dgram.c +++ b/crypto/bio/bss_dgram.c @@ -381,8 +381,8 @@ static long dgram_ctrl(BIO *b, int cmd, long num, void *ptr) int *ip; struct sockaddr *to = NULL; bio_dgram_data *data = NULL; - int sockopt_val = 0; #if defined(OPENSSL_SYS_LINUX) && (defined(IP_MTU_DISCOVER) || defined(IP_MTU)) + int sockopt_val = 0; socklen_t sockopt_len; /* assume that system supporting IP_MTU is * modern enough to define socklen_t */ socklen_t addr_len;