httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@hyperreal.org
Subject cvs commit: apache-2.0/src/main buff.c
Date Sun, 07 Nov 1999 05:58:25 GMT
bjh         99/11/06 21:58:24

  Modified:    src/main buff.c
  Log:
  optval is a pointer to the value, I think this was the intended test.
  BTW, what's with the ZZZ comment? Surely it would have been just as easy
  to write "fb->flags &= ~B_WR;" as to write the comment.....
  
  Revision  Changes    Path
  1.25      +1 -1      apache-2.0/src/main/buff.c
  
  Index: buff.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/main/buff.c,v
  retrieving revision 1.24
  retrieving revision 1.25
  diff -u -r1.24 -r1.25
  --- buff.c	1999/10/31 09:16:40	1.24
  +++ buff.c	1999/11/07 05:58:24	1.25
  @@ -200,7 +200,7 @@
   
       case BO_TIMEOUT:
   	fb->flags &= ~B_NONBLOCK;
  -	if (optval == 0) {
  +	if (*(const long int *)optval == 0) {
   	    fb->flags |= B_NONBLOCK;
   	    /* XXX: should remove B_WR now... */
   	}
  
  
  

Mime
View raw message