summaryrefslogtreecommitdiff
path: root/network_io
diff options
context:
space:
mode:
authorGreg Stein <gstein@apache.org>2000-06-26 23:38:34 +0000
committerGreg Stein <gstein@apache.org>2000-06-26 23:38:34 +0000
commitbadea087f9f7aeaf8b1aa19f1eaa15ec76f3accc (patch)
tree5912121e2c86ab8c7bc1ee9b3754ff55d6fe83bc /network_io
parent5e3d12062311eedad6fd43a5b95537e378e0cd1c (diff)
downloadapr-badea087f9f7aeaf8b1aa19f1eaa15ec76f3accc.tar.gz
Can't add anything to a void*. Make it a char* for these manipulations.
Submitted by: "Victor J. Orlikowski" <vjo@raleigh.ibm.com> Reviewed by: Greg Stein git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60263 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'network_io')
-rw-r--r--network_io/unix/sendrecv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/network_io/unix/sendrecv.c b/network_io/unix/sendrecv.c
index 014ffabde..de5fdfb80 100644
--- a/network_io/unix/sendrecv.c
+++ b/network_io/unix/sendrecv.c
@@ -485,7 +485,7 @@ ap_status_t ap_sendfile(ap_socket_t * sock, ap_file_t * file,
#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 @@ ap_status_t ap_sendfile(ap_socket_t * sock, ap_file_t * file,
#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;
}