]> granicus.if.org Git - apache/commitdiff
Added include "ajp.h", and made some casting
authorWilliam A. Rowe Jr <wrowe@apache.org>
Wed, 11 Aug 2004 20:43:05 +0000 (20:43 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Wed, 11 Aug 2004 20:43:05 +0000 (20:43 +0000)
Submitted by: mturk

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104559 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/proxy_ajp.c

index 61a91afdaa75f757b29c095a099d1675a0df4fc4..f150764e1db327935f41a4f97a14ad20f546bff8 100644 (file)
@@ -16,6 +16,7 @@
 /* HTTP routines for Apache proxy */
 
 #include "mod_proxy.h"
+#include "ajp.h"
 
 module AP_MODULE_DECLARE_DATA proxy_ajp_module;
 
@@ -379,10 +380,9 @@ apr_status_t ap_proxy_ajp_request(apr_pool_t *p, request_rec *r,
     }
 
     if (1) { /* XXXX only when something to send ? */
-        void *msg;
+        ajp_msg_t *msg;
         apr_size_t bufsiz;
         char *buff;
-        long len;
         status = ajp_alloc_data_msg(r, &buff, &bufsiz, &msg);
         if (status != APR_SUCCESS) {
             return status;
@@ -412,7 +412,8 @@ apr_status_t ap_proxy_ajp_request(apr_pool_t *p, request_rec *r,
     }
 
     /* read the response */
-    status = ajp_read_header(p_conn->sock, r, &(p_conn->data));
+    status = ajp_read_header(p_conn->sock, r,
+                             (ajp_msg_t **)&(p_conn->data));
     if (status != APR_SUCCESS) {
         ap_log_error(APLOG_MARK, APLOG_ERR, status, r->server,
                      "proxy: request failed to %pI (%s)",
@@ -472,7 +473,7 @@ apr_status_t ap_proxy_ajp_process_response(apr_pool_t * p, request_rec *r,
             }
         } else if  (type == 3) {
             /* AJP13_SEND_BODY_CHUNK: piece of data */
-            apr_size_t size;
+            apr_uint16_t size;
             char *buff;
 
             status = ajp_parse_data(r, p_conn->data, &size, &buff);
@@ -483,7 +484,8 @@ apr_status_t ap_proxy_ajp_process_response(apr_pool_t * p, request_rec *r,
             break;
         }
         /* Read the next message */
-        status = ajp_read_header(p_conn->sock, r, &(p_conn->data));
+        status = ajp_read_header(p_conn->sock, r,
+                                 (ajp_msg_t **)&(p_conn->data));
         if (status != APR_SUCCESS) {
             break;
         }