From: Jim Jagielski Date: Sat, 10 Sep 2005 14:59:48 +0000 (+0000) Subject: gcc -Wall fix: depending on signedness of char. X-Git-Tag: 2.3.0~3010 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d2f9ab165965460a1ba1a1e1aa1ef258963cfef9;p=apache gcc -Wall fix: depending on signedness of char. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@280013 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/proxy/ajp_link.c b/modules/proxy/ajp_link.c index b6e98b4ebd..8a735060f5 100644 --- a/modules/proxy/ajp_link.c +++ b/modules/proxy/ajp_link.c @@ -51,7 +51,7 @@ apr_status_t ajp_ilink_send(apr_socket_t *sock, ajp_msg_t *msg) } -static apr_status_t ilink_read(apr_socket_t *sock, char * buf, +static apr_status_t ilink_read(apr_socket_t *sock, apr_byte_t *buf, apr_size_t len) { apr_size_t length = len; @@ -60,7 +60,7 @@ static apr_status_t ilink_read(apr_socket_t *sock, char * buf, while (rdlen < len) { - status = apr_socket_recv(sock, buf + rdlen, &length); + status = apr_socket_recv(sock, (char *)(buf + rdlen), &length); if (status == APR_EOF) return status; /* socket closed. */