httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dgau...@hyperreal.org
Subject cvs commit: apache-1.3/src/main buff.c
Date Wed, 01 Jul 1998 18:22:34 GMT
dgaudet     98/07/01 11:22:34

  Modified:    src/main buff.c
  Log:
  more efficient comparisons
  
  Revision  Changes    Path
  1.79      +2 -5      apache-1.3/src/main/buff.c
  
  Index: buff.c
  ===================================================================
  RCS file: /export/home/cvs/apache-1.3/src/main/buff.c,v
  retrieving revision 1.78
  retrieving revision 1.79
  diff -u -r1.78 -r1.79
  --- buff.c	1998/07/01 18:18:25	1.78
  +++ buff.c	1998/07/01 18:22:33	1.79
  @@ -433,7 +433,7 @@
   	/* already chunking */
   	return;
       }
  -    if (!(fb->flags & B_WR) || (fb->flags & (B_WRERR | B_EOUT))) {
  +    if ((fb->flags & (B_WRERR | B_EOUT | B_WR)) != B_WR) {
   	/* unbuffered writes */
   	return;
       }
  @@ -1362,10 +1362,7 @@
   {
       int ret;
   
  -    if (!(fb->flags & B_WR) || (fb->flags & B_EOUT))
  -	return -1;
  -
  -    if (fb->flags & B_WRERR)
  +    if ((fb->flags & (B_WRERR | B_EOUT | B_WR)) != B_WR)
   	return -1;
   
       if (fb->flags & B_CHUNK)
  
  
  

Mime
View raw message