httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject cvs commit: httpd-2.0/modules/proxy proxy_ajp.c
Date Wed, 11 Aug 2004 20:43:05 GMT
wrowe       2004/08/11 13:43:05

  Modified:    modules/proxy proxy_ajp.c
  Log:
  Added include "ajp.h", and made some casting
  
  Submitted by: mturk
  
  Revision  Changes    Path
  1.4       +7 -5      httpd-2.0/modules/proxy/proxy_ajp.c
  
  Index: proxy_ajp.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/proxy/proxy_ajp.c,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- proxy_ajp.c	11 Aug 2004 20:42:00 -0000	1.3
  +++ proxy_ajp.c	11 Aug 2004 20:43:05 -0000	1.4
  @@ -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 @@
       }
   
       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 @@
       }
   
       /* 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 @@
               }
           } 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 @@
               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;
           }
  
  
  

Mime
View raw message