httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dgau...@hyperreal.org
Subject cvs commit: apachen/src/main buff.c
Date Thu, 22 Jan 1998 21:00:07 GMT
dgaudet     98/01/22 13:00:07

  Modified:    src/main buff.c
  Log:
  document doerror() a little better
  
  Submitted by:	Ben Hyde
  Reviewed by:	Dean Gaudet
  
  Revision  Changes    Path
  1.58      +3 -6      apachen/src/main/buff.c
  
  Index: buff.c
  ===================================================================
  RCS file: /export/home/cvs/apachen/src/main/buff.c,v
  retrieving revision 1.57
  retrieving revision 1.58
  diff -u -r1.57 -r1.58
  --- buff.c	1998/01/16 14:22:54	1.57
  +++ buff.c	1998/01/22 21:00:06	1.58
  @@ -247,16 +247,13 @@
       return rv;
   }
   
  -static void doerror(BUFF *fb, int err)
  +static void doerror(BUFF *fb, int direction)
   {
       int errsave = errno;	/* Save errno to prevent overwriting it below */
   
  -    if (err == B_RD)
  -	fb->flags |= B_RDERR;
  -    else
  -	fb->flags |= B_WRERR;
  +    fb->flags |= (direction == B_RD ? B_RDERR : B_WRERR);
       if (fb->error != NULL)
  -	(*fb->error) (fb, err, fb->error_data);
  +	(*fb->error) (fb, direction, fb->error_data);
   
       errno = errsave;
   }
  
  
  

Mime
View raw message