You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by tr...@locus.apache.org on 2000/07/18 05:15:12 UTC
cvs commit: apache-2.0/src/lib/apr/file_io/unix fullrw.c
trawick 00/07/17 20:15:12
Modified: src/lib/apr/file_io/unix fullrw.c
Log:
Cast a void * ptr to char * in a couple of places so that
ptr arithmetic works.
Submitted by: "Victor J. Orlikowski" <vj...@raleigh.ibm.com>
Reviewed by: Jeff Trawick
Revision Changes Path
1.2 +2 -2 apache-2.0/src/lib/apr/file_io/unix/fullrw.c
Index: fullrw.c
===================================================================
RCS file: /home/cvs/apache-2.0/src/lib/apr/file_io/unix/fullrw.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- fullrw.c 2000/07/15 02:07:20 1.1
+++ fullrw.c 2000/07/18 03:15:12 1.2
@@ -65,7 +65,7 @@
ap_ssize_t amt = (ap_ssize_t)nbytes;
status = ap_read(thefile, buf, &amt);
- buf += amt;
+ buf = (char *)buf + amt;
nbytes -= amt;
total_read += amt;
} while (status == APR_SUCCESS && nbytes > 0);
@@ -86,7 +86,7 @@
ap_ssize_t amt = (ap_ssize_t)nbytes;
status = ap_write(thefile, buf, &amt);
- buf += amt;
+ buf = (char *)buf + amt;
nbytes -= amt;
total_written += amt;
} while (status == APR_SUCCESS && nbytes > 0);