From: Aaron Bannert Date: Thu, 27 Dec 2001 18:12:15 +0000 (+0000) Subject: Get rid of identifiers called 'stat' so we don't conflict with the libc X-Git-Tag: 2.0.30~113 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8a1532ee102026c94c5fa132dfa61112e34b0378;p=apache 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 --- 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;
         }