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/lib/apr/test testsf.c
Date Tue, 18 Jul 2000 02:30:29 GMT
trawick     00/07/17 19:30:29

  Modified:    src/lib/apr/test testsf.c
  Log:
  Cast some void * ptrs to char * so that some ptr arithmetic
  can work on all compilers.
  Submitted by:	Dave Hill  <ddhill@zk3.dec.com>
  Reviewed by:	Jeff Trawick
  
  Revision  Changes    Path
  1.4       +4 -2      apache-2.0/src/lib/apr/test/testsf.c
  
  Index: testsf.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/lib/apr/test/testsf.c,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- testsf.c	2000/07/07 02:50:50	1.3
  +++ testsf.c	2000/07/18 02:30:28	1.4
  @@ -366,7 +366,8 @@
                   }
                   else {
                       hdtr.headers[0].iov_len -= tmplen;
  -                    hdtr.headers[0].iov_base += tmplen;
  +                    hdtr.headers[0].iov_base = 
  +			(char*) hdtr.headers[0].iov_base + tmplen;
                       tmplen = 0;
                   }
               }
  @@ -398,7 +399,8 @@
                   }
                   else {
                       hdtr.trailers[0].iov_len -= tmplen;
  -                    hdtr.trailers[0].iov_base += tmplen;
  +                    hdtr.trailers[0].iov_base = 
  +			(char *)hdtr.trailers[0].iov_base + tmplen;
                       tmplen = 0;
                   }
               }
  
  
  

Mime
View raw message