summaryrefslogtreecommitdiffstats
path: root/modules/metadata
diff options
context:
space:
mode:
authorWilliam A. Rowe Jr <wrowe@apache.org>2007-08-23 10:12:55 +0200
committerWilliam A. Rowe Jr <wrowe@apache.org>2007-08-23 10:12:55 +0200
commit15cbde542370c7799aae9291727de18c1493987f (patch)
tree5a33238294244c5c50ff54a08f2cf79aec62c8c3 /modules/metadata
parentNecessary cast; deliberately truncate to short. (diff)
downloadapache2-15cbde542370c7799aae9291727de18c1493987f.tar.xz
apache2-15cbde542370c7799aae9291727de18c1493987f.zip
Supress the warning for compilers which fold *end-*start into ssize_t.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@568879 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/metadata')
-rw-r--r--modules/metadata/mod_headers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/metadata/mod_headers.c b/modules/metadata/mod_headers.c
index 6d459b880b..d35c44f14b 100644
--- a/modules/metadata/mod_headers.c
+++ b/modules/metadata/mod_headers.c
@@ -641,7 +641,7 @@ static void do_headers_fixup(request_rec *r, apr_table_t *headers,
break;
}
- if (new_val_len == (val - tok_start)
+ if (new_val_len == (apr_size_t)(val - tok_start)
&& !strncmp(tok_start, new_val, new_val_len)) {
tok_found = 1;
break;