]> granicus.if.org Git - apache/commitdiff
- Remove APR_STATUS_IS_SUCCESS calls in favor of directly testing APR_SUCCESS.
authorJustin Erenkrantz <jerenkrantz@apache.org>
Thu, 30 May 2002 00:30:28 +0000 (00:30 +0000)
committerJustin Erenkrantz <jerenkrantz@apache.org>
Thu, 30 May 2002 00:30:28 +0000 (00:30 +0000)
- 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

index 622586c2ca0c3b14a85acf59ff17cf92d137d304..88ebc63d4f4ca6f1810d1358aaa2ddb3d4e593bf 100644 (file)
@@ -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");