]> granicus.if.org Git - apache/commitdiff
gcc -Wall fix: depending on signedness of char.
authorJim Jagielski <jim@apache.org>
Sat, 10 Sep 2005 14:59:48 +0000 (14:59 +0000)
committerJim Jagielski <jim@apache.org>
Sat, 10 Sep 2005 14:59:48 +0000 (14:59 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@280013 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/ajp_link.c

index b6e98b4ebd3f35d9f648c88ab9b61ecfb7cf3204..8a735060f5370318f50f8f749d778180b9111cf3 100644 (file)
@@ -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. */