httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Victor J. Orlikowski" <...@raleigh.ibm.com>
Subject [PATCH] Compiler clean-up
Date Mon, 26 Jun 2000 20:56:54 GMT
xlC (rightly) complains that void *'s may not have things assumed about
them, and forces the cast to char *.

Index: src/lib/apr/network_io/unix/sendrecv.c
===================================================================
RCS file: /cvs/apache/apache-2.0/src/lib/apr/network_io/unix/sendrecv.c,v
retrieving revision 1.27
diff -u -r1.27 sendrecv.c
--- sendrecv.c 2000/06/23 17:14:38 1.27
+++ sendrecv.c 2000/06/26 20:47:35
@@ -485,7 +485,7 @@
 #endif
             ptr = 0;
             for (i = 0; i < hdtr->numheaders; i++) {
-                memcpy(hbuf + ptr, hdtr->headers[i].iov_base,
+                memcpy((char *)hbuf + ptr, hdtr->headers[i].iov_base,
                        hdtr->headers[i].iov_len);
                 ptr += hdtr->headers[i].iov_len;
             }
@@ -511,7 +511,7 @@
 #endif
             ptr = 0;
             for (i = 0; i < hdtr->numtrailers; i++) {
-                memcpy(tbuf + ptr, hdtr->trailers[i].iov_base,
+                memcpy((char *)tbuf + ptr, hdtr->trailers[i].iov_base,
                        hdtr->trailers[i].iov_len);
                 ptr += hdtr->trailers[i].iov_len;
             }



Mime
View raw message