Rename variable for clarity
diff --git a/programs/ssl/ssl_server2.c b/programs/ssl/ssl_server2.c
index 242ca2a..70fffc5 100644
--- a/programs/ssl/ssl_server2.c
+++ b/programs/ssl/ssl_server2.c
@@ -631,7 +631,7 @@
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 @@
}
#endif /* POLARSSL_X509_CRT_PARSE_C */
- exchanges = opt.exchanges;
+ exchanges_left = opt.exchanges;
data_exchange:
/*
* 6. Read the HTTP Request
@@ -1741,7 +1741,7 @@
* (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 @@
/*
* 7b. Continue doing data exchanges?
*/
- if( --exchanges > 0 )
+ if( --exchanges_left > 0 )
goto data_exchange;
/*