From 18e58091f7b4ad67c67b0b5143761cf9ec8f018c Mon Sep 17 00:00:00 2001 From: Justin Erenkrantz Date: Thu, 30 May 2002 00:30:28 +0000 Subject: [PATCH] - 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 --- modules/generators/mod_cgi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/generators/mod_cgi.c b/modules/generators/mod_cgi.c index 622586c2ca..88ebc63d4f 100644 --- a/modules/generators/mod_cgi.c +++ b/modules/generators/mod_cgi.c @@ -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"); -- 2.50.1