From 5568de75ee3d7ac67dc0b7598ed33ca4e35b3a6d Mon Sep 17 00:00:00 2001 From: Aaron Bannert Date: Thu, 27 Dec 2001 18:12:15 +0000 Subject: [PATCH] Get rid of identifiers called 'stat' so we don't conflict with the libc 'stat' symbol. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92625 13f79535-47bb-0310-9956-ffa450edef68 --- modules/generators/mod_autoindex.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/generators/mod_autoindex.c b/modules/generators/mod_autoindex.c index e712960997..be0b0a044d 100644 --- a/modules/generators/mod_autoindex.c +++ b/modules/generators/mod_autoindex.c @@ -933,15 +933,15 @@ static void do_emit_plain(request_rec *r, apr_file_t *f) char buf[AP_IOBUFSIZE + 1]; int ch; apr_size_t i, c, n; - apr_status_t stat; + apr_status_t rv; ap_rputs("
\n", r);
     while (!apr_file_eof(f)) {
         do {
             n = sizeof(char) * AP_IOBUFSIZE;
-            stat = apr_file_read(f, buf, &n);
-        } while (APR_STATUS_IS_EINTR(stat));
-        if (n == 0 || stat != APR_SUCCESS) {
+            rv = apr_file_read(f, buf, &n);
+        } while (APR_STATUS_IS_EINTR(rv));
+        if (n == 0 || rv != APR_SUCCESS) {
             /* ###: better error here? */
             break;
         }
-- 
2.50.1