mirror of
https://github.com/apache/httpd.git
synced 2025-08-08 15:02:10 +03:00
- Remove APR_STATUS_IS_SUCCESS calls in favor of directly testing APR_SUCCESS.
- Minor style nit with spaces. (No functional changes.) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95374 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -332,7 +332,7 @@ static int log_script(request_rec *r, cgi_server_conf * conf, int ret,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
rv = apr_bucket_read(e, &buf, &len, APR_BLOCK_READ);
|
rv = apr_bucket_read(e, &buf, &len, APR_BLOCK_READ);
|
||||||
if (!APR_STATUS_IS_SUCCESS(rv) || (len == 0)) {
|
if (rv != APR_SUCCESS || (len == 0)) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (first) {
|
if (first) {
|
||||||
@@ -592,7 +592,7 @@ static void discard_script_output(apr_bucket_brigade *bb)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
rv = apr_bucket_read(e, &buf, &len, APR_BLOCK_READ);
|
rv = apr_bucket_read(e, &buf, &len, APR_BLOCK_READ);
|
||||||
if (!APR_STATUS_IS_SUCCESS(rv)) {
|
if (rv != APR_SUCCESS) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -615,7 +615,7 @@ static int cgi_handler(request_rec *r)
|
|||||||
apr_status_t rv;
|
apr_status_t rv;
|
||||||
exec_info e_info;
|
exec_info e_info;
|
||||||
|
|
||||||
if(strcmp(r->handler,CGI_MAGIC_TYPE) && strcmp(r->handler,"cgi-script"))
|
if(strcmp(r->handler, CGI_MAGIC_TYPE) && strcmp(r->handler, "cgi-script"))
|
||||||
return DECLINED;
|
return DECLINED;
|
||||||
|
|
||||||
is_included = !strcmp(r->protocol, "INCLUDED");
|
is_included = !strcmp(r->protocol, "INCLUDED");
|
||||||
|
Reference in New Issue
Block a user