diff options
author | Christophe Jaillet <jailletc36@apache.org> | 2022-05-04 22:28:32 +0200 |
---|---|---|
committer | Christophe Jaillet <jailletc36@apache.org> | 2022-05-04 22:28:32 +0200 |
commit | 2cf2f54a0bef786b08547dc87a9c71fe35fc3f08 (patch) | |
tree | 518d83a11f34413ca2ebe7afb213b470281de3c5 /modules/loggers | |
parent | dav_get_liveprop_info() returns a long not an int. (diff) | |
download | apache2-2cf2f54a0bef786b08547dc87a9c71fe35fc3f08.tar.xz apache2-2cf2f54a0bef786b08547dc87a9c71fe35fc3f08.zip |
Length computed by count_string() are accumulated in an apr_size_t, so be more consistent and use this data type also in this function.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1900564 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/loggers')
-rw-r--r-- | modules/loggers/mod_log_forensic.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/loggers/mod_log_forensic.c b/modules/loggers/mod_log_forensic.c index f644a65f8d..897a70cbc8 100644 --- a/modules/loggers/mod_log_forensic.c +++ b/modules/loggers/mod_log_forensic.c @@ -146,9 +146,9 @@ typedef struct hlog { apr_size_t count; } hlog; -static int count_string(const char *p) +static apr_size_t count_string(const char *p) { - int n; + apr_size_t n; for (n = 0 ; *p ; ++p, ++n) if (TEST_CHAR(*p, T_ESCAPE_FORENSIC)) |