apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject cvs commit: apr/test sendfile.c
Date Wed, 12 Dec 2001 11:46:03 GMT
trawick     01/12/12 03:46:03

  Modified:    test     sendfile.c
  Log:
  iov_base can't be dereferenced portably
  
  Revision  Changes    Path
  1.18      +1 -1      apr/test/sendfile.c
  
  Index: sendfile.c
  ===================================================================
  RCS file: /home/cvs/apr/test/sendfile.c,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- sendfile.c	2001/12/12 08:37:33	1.17
  +++ sendfile.c	2001/12/12 11:46:02	1.18
  @@ -357,7 +357,7 @@
               printf("Headers (%d):\n", hdtr.numheaders);
               for (i = 0; i < hdtr.numheaders; i++) {
                   printf("\t%d bytes (%c)\n",
  -                       hdtr.headers[i].iov_len, hdtr.headers[i].iov_base[0]);
  +                       hdtr.headers[i].iov_len, *(char *)hdtr.headers[i].iov_base);
               }
               printf("File: %ld bytes from offset %ld\n",
                      (long)tmplen, (long)current_file_offset);
  
  
  

Mime
View raw message