mirror of
https://github.com/apache/httpd.git
synced 2025-08-07 04:02:58 +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;
|
||||
}
|
||||
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;
|
||||
}
|
||||
if (first) {
|
||||
@@ -592,7 +592,7 @@ static void discard_script_output(apr_bucket_brigade *bb)
|
||||
break;
|
||||
}
|
||||
rv = apr_bucket_read(e, &buf, &len, APR_BLOCK_READ);
|
||||
if (!APR_STATUS_IS_SUCCESS(rv)) {
|
||||
if (rv != APR_SUCCESS) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -615,7 +615,7 @@ static int cgi_handler(request_rec *r)
|
||||
apr_status_t rv;
|
||||
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;
|
||||
|
||||
is_included = !strcmp(r->protocol, "INCLUDED");
|
||||
|
Reference in New Issue
Block a user