You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ji...@apache.org on 2005/09/19 14:38:54 UTC

svn commit: r290139 - /httpd/httpd/branches/2.2.x/modules/proxy/ajp_link.c

Author: jim
Date: Mon Sep 19 05:38:51 2005
New Revision: 290139

URL: http://svn.apache.org/viewcvs?rev=290139&view=rev
Log:
Backport r280013 from trunk:

gcc -Wall fix: depending on signedness of char.

Modified:
    httpd/httpd/branches/2.2.x/modules/proxy/ajp_link.c

Modified: httpd/httpd/branches/2.2.x/modules/proxy/ajp_link.c
URL: http://svn.apache.org/viewcvs/httpd/httpd/branches/2.2.x/modules/proxy/ajp_link.c?rev=290139&r1=290138&r2=290139&view=diff
==============================================================================
--- httpd/httpd/branches/2.2.x/modules/proxy/ajp_link.c (original)
+++ httpd/httpd/branches/2.2.x/modules/proxy/ajp_link.c Mon Sep 19 05:38:51 2005
@@ -51,7 +51,7 @@
 }
 
 
-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 @@
 
     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. */