httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aa...@apache.org
Subject cvs commit: httpd-2.0/modules/generators mod_autoindex.c
Date Thu, 27 Dec 2001 18:12:15 GMT
aaron       01/12/27 10:12:15

  Modified:    modules/generators mod_autoindex.c
  Log:
  Get rid of identifiers called 'stat' so we don't conflict with the libc
  'stat' symbol.
  
  Revision  Changes    Path
  1.90      +4 -4      httpd-2.0/modules/generators/mod_autoindex.c
  
  Index: mod_autoindex.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/generators/mod_autoindex.c,v
  retrieving revision 1.89
  retrieving revision 1.90
  diff -u -r1.89 -r1.90
  --- mod_autoindex.c	2001/12/27 18:07:22	1.89
  +++ mod_autoindex.c	2001/12/27 18:12:15	1.90
  @@ -933,15 +933,15 @@
       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;
           }
  
  
  

Mime
View raw message