From 6a0017b7c01f4a8c562486f6cb662286120f6c2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Thu, 22 Jan 2015 10:33:29 +0000 Subject: [PATCH] Rename variable for clarity --- programs/ssl/ssl_server2.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/programs/ssl/ssl_server2.c b/programs/ssl/ssl_server2.c index 242ca2ac38..70fffc5333 100644 --- a/programs/ssl/ssl_server2.c +++ b/programs/ssl/ssl_server2.c @@ -631,7 +631,7 @@ void term_handler( int sig ) int main( int argc, char *argv[] ) { - int ret = 0, len, written, frags, exchanges; + int ret = 0, len, written, frags, exchanges_left; int version_suites[4][2]; unsigned char buf[IO_BUF_LEN]; #if defined(POLARSSL_KEY_EXCHANGE__SOME__PSK_ENABLED) @@ -1636,7 +1636,7 @@ reset: } #endif /* POLARSSL_X509_CRT_PARSE_C */ - exchanges = opt.exchanges; + exchanges_left = opt.exchanges; data_exchange: /* * 6. Read the HTTP Request @@ -1741,7 +1741,7 @@ data_exchange: * (only if we're going to exhange more data afterwards) */ #if defined(POLARSSL_SSL_RENEGOTIATION) - if( opt.renegotiate && exchanges > 1 ) + if( opt.renegotiate && exchanges_left > 1 ) { printf( " . Requestion renegotiation..." ); fflush( stdout ); @@ -1794,7 +1794,7 @@ data_exchange: /* * 7b. Continue doing data exchanges? */ - if( --exchanges > 0 ) + if( --exchanges_left > 0 ) goto data_exchange; /*