httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n.@apache.org
Subject cvs commit: httpd-2.0/modules/mappers mod_negotiation.c
Date Tue, 25 May 2004 20:01:23 GMT
nd          2004/05/25 13:01:23

  Modified:    modules/mappers mod_negotiation.c
  Log:
  save some cycles
  
  Revision  Changes    Path
  1.122     +2 -4      httpd-2.0/modules/mappers/mod_negotiation.c
  
  Index: mod_negotiation.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/mappers/mod_negotiation.c,v
  retrieving revision 1.121
  retrieving revision 1.122
  diff -u -u -r1.121 -r1.122
  --- mod_negotiation.c	17 Apr 2004 00:19:16 -0000	1.121
  +++ mod_negotiation.c	25 May 2004 20:01:23 -0000	1.122
  @@ -2437,7 +2437,6 @@
       const char *sample_charset = NULL;
       char *lang;
       char *qstr;
  -    char *lenstr;
       apr_off_t len;
       apr_array_header_t *arr;
       int max_vlist_array = (neg->avail_vars->nelts * 21);
  @@ -2573,10 +2572,9 @@
           if (!(variant->sub_req && variant->sub_req->handler)
               && (len = find_content_length(neg, variant)) >= 0) {
   
  -            lenstr = (char *) apr_palloc(r->pool, 22);
  -            apr_snprintf(lenstr, 22, "%" APR_OFF_T_FMT, len);
               *((const char **) apr_array_push(arr)) = " {length ";
  -            *((const char **) apr_array_push(arr)) = lenstr;
  +            *((const char **) apr_array_push(arr)) = apr_off_t_toa(r->pool,
  +                                                                   len);
               *((const char **) apr_array_push(arr)) = "}";
           }
   
  
  
  

Mime
View raw message