httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jerenkra...@apache.org
Subject cvs commit: httpd-2.0/modules/generators mod_cgi.c
Date Thu, 30 May 2002 00:30:28 GMT
jerenkrantz    02/05/29 17:30:28

  Modified:    modules/generators mod_cgi.c
  Log:
  - Remove APR_STATUS_IS_SUCCESS calls in favor of directly testing APR_SUCCESS.
  - Minor style nit with spaces.
  (No functional changes.)
  
  Revision  Changes    Path
  1.138     +3 -3      httpd-2.0/modules/generators/mod_cgi.c
  
  Index: mod_cgi.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/generators/mod_cgi.c,v
  retrieving revision 1.137
  retrieving revision 1.138
  diff -u -r1.137 -r1.138
  --- mod_cgi.c	29 May 2002 23:06:12 -0000	1.137
  +++ mod_cgi.c	30 May 2002 00:30:28 -0000	1.138
  @@ -332,7 +332,7 @@
               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 @@
               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 @@
       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");
  
  
  

Mime
View raw message