]> granicus.if.org Git - php/commitdiff
C89 compat
authorAnatol Belski <ab@php.net>
Fri, 23 Jan 2015 14:04:29 +0000 (15:04 +0100)
committerAnatol Belski <ab@php.net>
Fri, 23 Jan 2015 14:04:29 +0000 (15:04 +0100)
ext/openssl/xp_ssl.c

index 6fab13a7aeb63bfbf4de4e8d61358081347eb66d..67de23c77fbec41160c30358ad990fe40216eead 100644 (file)
@@ -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 );
                        }