httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From roo...@apache.org
Subject svn commit: r397968 - /httpd/httpd/trunk/modules/proxy/mod_proxy_fcgi.c
Date Fri, 28 Apr 2006 17:50:57 GMT
Author: rooneg
Date: Fri Apr 28 10:50:56 2006
New Revision: 397968

URL: http://svn.apache.org/viewcvs?rev=397968&view=rev
Log:
Fix compile time warnings.

Pointed out by: jorton

* modules/proxy/mod_proxy_fcgi.c
  Add include of util_script.h to pick up some function prototypes.
  (send_begin_request): Initialize the reserved bytes in the request
   body to zero.
  (dispatch): Use APR_SIZE_T_FMT instead of %d when logging an apr_size_t.

Modified:
    httpd/httpd/trunk/modules/proxy/mod_proxy_fcgi.c

Modified: httpd/httpd/trunk/modules/proxy/mod_proxy_fcgi.c
URL: http://svn.apache.org/viewcvs/httpd/httpd/trunk/modules/proxy/mod_proxy_fcgi.c?rev=397968&r1=397967&r2=397968&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/proxy/mod_proxy_fcgi.c (original)
+++ httpd/httpd/trunk/modules/proxy/mod_proxy_fcgi.c Fri Apr 28 10:50:56 2006
@@ -16,6 +16,7 @@
 
 #include "mod_proxy.h"
 #include "fcgi_protocol.h"
+#include "util_script.h"
 
 module AP_MODULE_DECLARE_DATA proxy_fcgi_module;
 
@@ -240,6 +241,11 @@
     brb.roleB1 = ((FCGI_RESPONDER >> 8) & 0xff);
     brb.roleB0 = ((FCGI_RESPONDER) & 0xff); 
     brb.flags = FCGI_KEEP_CONN;
+    brb.reserved[0] = 0;
+    brb.reserved[1] = 0;
+    brb.reserved[2] = 0;
+    brb.reserved[3] = 0;
+    brb.reserved[4] = 0;
 
     fcgi_header_to_array(&header, farray);
     fcgi_begin_request_body_to_array(&brb, abrb);
@@ -673,7 +679,7 @@
             if (readbuflen != FCGI_HEADER_LEN) {
                 ap_log_error(APLOG_MARK, APLOG_ERR, 0, r->server,
                              "proxy: FCGI: Failed to read entire header "
-                             "got %d wanted %d", 
+                             "got %" APR_SIZE_T_FMT " wanted %d", 
                              readbuflen, FCGI_HEADER_LEN);
                 rv = APR_EINVAL;
                 break;



Mime
View raw message