diff options
author | William A. Rowe Jr <wrowe@apache.org> | 2001-07-25 21:47:20 +0000 |
---|---|---|
committer | William A. Rowe Jr <wrowe@apache.org> | 2001-07-25 21:47:20 +0000 |
commit | 6319847b5cfc7633465dc4f9879ffd198cf710bf (patch) | |
tree | 0bfa0d02308aa19d1d78379eb469c222f5599fc3 | |
parent | c9148bcd492decd092eeee697b60f437b727d76a (diff) | |
download | httpd-6319847b5cfc7633465dc4f9879ffd198cf710bf.tar.gz |
More signedness fixes
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89715 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | modules/generators/mod_autoindex.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/generators/mod_autoindex.c b/modules/generators/mod_autoindex.c index 90575c5d86..7d4b809323 100644 --- a/modules/generators/mod_autoindex.c +++ b/modules/generators/mod_autoindex.c @@ -913,8 +913,8 @@ static int ignore_entry(autoindex_config_rec *d, char *path) static void do_emit_plain(request_rec *r, apr_file_t *f) { char buf[AP_IOBUFSIZE + 1]; - int i, c, ch; - apr_size_t n; + int ch; + apr_size_t i, c, n; apr_status_t stat; ap_rputs("<PRE>\n", r); @@ -924,7 +924,8 @@ static void do_emit_plain(request_rec *r, apr_file_t *f) stat = apr_file_read(f, buf, &n); } while (stat != APR_SUCCESS && APR_STATUS_IS_EINTR(stat)); - if (n == -1 || n == 0) { + if (n == 0 || stat != APR_SUCCESS) { + /* ###: better error here? */ break; } buf[n] = '\0'; |