com php-src: C89 compat: ext/openssl/xp_ssl.c

From: Date: Fri, 23 Jan 2015 14:04:29 +0000
Subject: com php-src: C89 compat: ext/openssl/xp_ssl.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-84344@lists.php.net to get a copy of this message
Commit: 647caea9f7212734f61255ed87d18aaac580cd30 Author: Anatol Belski <ab@php.net> Fri, 23 Jan 2015 15:04:29 +0100 Parents: 4369215b8fcaae61de0980fac8c247e54035f150 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=647caea9f7212734f61255ed87d18aaac580cd30 Log: C89 compat Changed paths: M ext/openssl/xp_ssl.c Diff: diff --git a/ext/openssl/xp_ssl.c b/ext/openssl/xp_ssl.c index 6fab13a..67de23c 100644 --- a/ext/openssl/xp_ssl.c +++ b/ext/openssl/xp_ssl.c @@ -1781,8 +1781,7 @@ static size_t php_openssl_sockop_io(int read, php_stream *stream, char *buf, siz /* Main IO loop. */ do { - struct timeval cur_time, - elapsed_time; + struct timeval cur_time, elapsed_time, left_time; /* If we have a timeout to check, figure out how much time has elapsed since we started. */ if (has_timeout) { @@ -1818,7 +1817,6 @@ static size_t php_openssl_sockop_io(int read, php_stream *stream, char *buf, siz } /* Now, how much time until we time out? */ - struct timeval left_time; if (has_timeout) { left_time = subtract_timeval( *timeout, elapsed_time ); }

« previous php.cvs (#84344) next »