]> granicus.if.org Git - apache/commitdiff
avoid warnings on systems where apr_size_t isn't int and where
authorJeff Trawick <trawick@apache.org>
Mon, 15 Jan 2001 19:50:13 +0000 (19:50 +0000)
committerJeff Trawick <trawick@apache.org>
Mon, 15 Jan 2001 19:50:13 +0000 (19:50 +0000)
strings.h is needed for the str[n]casecmp() declaration

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

modules/experimental/mod_ext_filter.c

index 8f583420b3f1081b32b39a9648bf80e1a843e1ab..02b5697769d5b53e86104f18677ddc534a36e3bd 100644 (file)
@@ -69,6 +69,9 @@
 #include "util_filter.h"
 #include "apr_strings.h"
 #include "apr_hash.h"
+#if APR_HAVE_STRINGS_H
+#include <strings.h>
+#endif
 
 typedef struct ef_server_t {
     apr_pool_t *p;
@@ -544,7 +547,7 @@ static apr_status_t drain_available_output(ap_filter_t *f)
         if ((rv && !APR_STATUS_IS_EAGAIN(rv)) ||
             dc->debug >= DBGLVL_GORY) {
             ap_log_rerror(APLOG_MARK, APLOG_DEBUG, rv, f->r,
-                          "apr_read(child output), len %d",
+                          "apr_read(child output), len %" APR_SIZE_T_FMT,
                           !rv ? len : -1);
         }
         if (rv != APR_SUCCESS) {
@@ -582,7 +585,7 @@ static apr_status_t pass_data_to_filter(ap_filter_t *f, const char *data,
         bytes_written += tmplen;
         if (rv != APR_SUCCESS && !APR_STATUS_IS_EAGAIN(rv)) {
             ap_log_rerror(APLOG_MARK, APLOG_ERR, rv, f->r,
-                          "apr_write(child input), len %d",
+                          "apr_write(child input), len %" APR_SIZE_T_FMT,
                           tmplen);
             return rv;
         }
@@ -702,7 +705,7 @@ static apr_status_t ef_output_filter(ap_filter_t *f, ap_bucket_brigade *bb)
         if ((rv && !APR_STATUS_IS_EOF(rv) && !APR_STATUS_IS_EAGAIN(rv)) ||
             dc->debug >= DBGLVL_GORY) {
             ap_log_rerror(APLOG_MARK, APLOG_DEBUG, rv, f->r,
-                          "apr_read(child output), len %d",
+                          "apr_read(child output), len %" APR_SIZE_T_FMT,
                           !rv ? len : -1);
         }
         if (APR_STATUS_IS_EAGAIN(rv)) {