httpd-apreq-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject cvs commit: httpd-apreq-2/src apreq_parsers.c
Date Wed, 15 Sep 2004 00:17:55 GMT
joes        2004/09/14 17:17:55

  Modified:    src      apreq_parsers.c
  Log:
  Attempt to work around HP-UX 64bit compiler complaints about an array initializer.  See
http://marc.theaimsgroup.com/?l=apreq-dev&m=109520589216901&w=2
  
  Revision  Changes    Path
  1.67      +7 -2      httpd-apreq-2/src/apreq_parsers.c
  
  Index: apreq_parsers.c
  ===================================================================
  RCS file: /home/cvs/httpd-apreq-2/src/apreq_parsers.c,v
  retrieving revision 1.66
  retrieving revision 1.67
  diff -u -r1.66 -r1.67
  --- apreq_parsers.c	13 Sep 2004 07:04:02 -0000	1.66
  +++ apreq_parsers.c	15 Sep 2004 00:17:55 -0000	1.67
  @@ -157,8 +157,13 @@
       apr_bucket *e, *end;
       apr_status_t s;
       struct iovec vec[APREQ_NELTS];
  -    apr_array_header_t arr = { pool, sizeof(struct iovec), 0,
  -                               APREQ_NELTS, (char *)vec };
  +    apr_array_header_t arr;
  +
  +    arr.pool     = pool;
  +    arr.elt_size = sizeof(struct iovec);
  +    arr.nelts    = 0;
  +    arr.nalloc   = APREQ_NELTS;
  +    arr.elts     = (char *)vec;
   
       param->bb = NULL;
       param->info = NULL;
  
  
  

Mime
View raw message