httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@locus.apache.org
Subject cvs commit: apache-2.0/src/main http_core.c
Date Thu, 09 Nov 2000 13:36:03 GMT
trawick     00/11/09 05:36:02

  Modified:    src/main http_core.c
  Log:
  Simplify the call to ap_send_fd().
  
  Revision  Changes    Path
  1.211     +2 -4      apache-2.0/src/main/http_core.c
  
  Index: http_core.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/main/http_core.c,v
  retrieving revision 1.210
  retrieving revision 1.211
  diff -u -r1.210 -r1.211
  --- http_core.c	2000/11/09 03:33:23	1.210
  +++ http_core.c	2000/11/09 13:36:01	1.211
  @@ -3000,11 +3000,9 @@
   	ap_send_http_header(r);
   	
   	if (!r->header_only) {
  -            apr_size_t length = r->finfo.size;
  -            apr_off_t  offset = 0;
  -            apr_size_t nbytes = 0;
  +            apr_size_t nbytes;
   
  -            ap_send_fd(fd, r, offset, length, &nbytes);
  +            ap_send_fd(fd, r, 0, r->finfo.size, &nbytes);
   	}
   
   #ifdef AP_USE_MMAP_FILES
  
  
  

Mime
View raw message