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/server protocol.c
Date Fri, 25 Jan 2002 05:39:21 GMT
jerenkrantz    02/01/24 21:39:21

  Modified:    server   protocol.c
  Log:
  Eliminate needless variable that wasn't initialized anyway.
  
  Revision  Changes    Path
  1.72      +2 -4      httpd-2.0/server/protocol.c
  
  Index: protocol.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/server/protocol.c,v
  retrieving revision 1.71
  retrieving revision 1.72
  diff -u -r1.71 -r1.72
  --- protocol.c	25 Jan 2002 02:38:52 -0000	1.71
  +++ protocol.c	25 Jan 2002 05:39:21 -0000	1.72
  @@ -212,13 +212,12 @@
       apr_bucket_brigade *b;
       apr_bucket *e;
       apr_size_t bytes_handled = 0, current_alloc = 0;
  -    apr_off_t bytes_read;
       char *pos, *last_char = *s;
       int do_alloc = (*s == NULL), saw_eos = 0;
   
       b = apr_brigade_create(r->pool);
       rv = ap_get_brigade(r->input_filters, b, AP_MODE_GETLINE,
  -                        APR_BLOCK_READ, bytes_read);
  +                        APR_BLOCK_READ, 0);
   
       if (rv != APR_SUCCESS) {
           return rv;
  @@ -379,9 +378,8 @@
           apr_size_t len;
   
           /* We only care about the first byte. */
  -        bytes_read = 1;
           rv = ap_get_brigade(r->input_filters, b, AP_MODE_SPECULATIVE,
  -                            APR_BLOCK_READ, bytes_read);
  +                            APR_BLOCK_READ, 1);
   
           if (rv != APR_SUCCESS) {
               return rv;
  
  
  

Mime
View raw message