]> granicus.if.org Git - apache/commitdiff
Get rid of identifiers called 'stat' so we don't conflict with the libc
authorAaron Bannert <aaron@apache.org>
Thu, 27 Dec 2001 18:12:15 +0000 (18:12 +0000)
committerAaron Bannert <aaron@apache.org>
Thu, 27 Dec 2001 18:12:15 +0000 (18:12 +0000)
'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

index e71296099785cdeb1bbab1c1b7021415299474ca..be0b0a044d55b445af555c05317cd922f3a5d55f 100644 (file)
@@ -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("<pre>\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;
         }