1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-08 15:02:10 +03:00

fix or complain about some invalid errno references

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@882269 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jeff Trawick
2009-11-19 20:00:12 +00:00
parent d152d310ef
commit d854b9d90c
4 changed files with 3 additions and 3 deletions

View File

@@ -272,7 +272,6 @@ apr_status_t ap_http_filter(ap_filter_t *f, apr_bucket_brigade *b,
char *endstr; char *endstr;
ctx->state = BODY_LENGTH; ctx->state = BODY_LENGTH;
errno = 0;
/* Protects against over/underflow, non-digit chars in the /* Protects against over/underflow, non-digit chars in the
* string (excluding leading space) (the endstr checks) * string (excluding leading space) (the endstr checks)

View File

@@ -1145,7 +1145,7 @@ skip_body:
} }
if (rv != OK) { if (rv != OK) {
/* apr_errno value has been logged in lower level method */ /* apr_status_t value has been logged in lower level method */
ap_log_error(APLOG_MARK, APLOG_ERR, 0, r->server, ap_log_error(APLOG_MARK, APLOG_ERR, 0, r->server,
"proxy: pass request body failed to %pI (%s)" "proxy: pass request body failed to %pI (%s)"
" from %s (%s)", " from %s (%s)",

View File

@@ -494,6 +494,7 @@ int ap_open_logs(apr_pool_t *pconf, apr_pool_t *p /* plog */,
* because it points to the old error log, or back to the tty * because it points to the old error log, or back to the tty
* of the submitter. * of the submitter.
* XXX: This is BS - /dev/null is non-portable * XXX: This is BS - /dev/null is non-portable
* errno-as-apr_status_t is also non-portable
*/ */
if (replace_stderr && freopen("/dev/null", "w", stderr) == NULL) { if (replace_stderr && freopen("/dev/null", "w", stderr) == NULL) {
ap_log_error(APLOG_MARK, APLOG_CRIT, errno, s_main, ap_log_error(APLOG_MARK, APLOG_CRIT, errno, s_main,

View File

@@ -342,7 +342,7 @@ static int process_dir(char *path, apr_pool_t *pool)
} }
} }
/* this may look strange but apr_stat() may return errno which /* this may look strange but apr_stat() may return an error which
* is system dependent and there may be transient failures, * is system dependent and there may be transient failures,
* so just blindly retry for a short while * so just blindly retry for a short while
*/ */