summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortrawick <trawick@13f79535-47bb-0310-9956-ffa450edef68>2001-08-07 19:13:27 +0000
committertrawick <trawick@13f79535-47bb-0310-9956-ffa450edef68>2001-08-07 19:13:27 +0000
commitfa410b0b7c99d2a36007d391ded4aa3e2f41d530 (patch)
tree94ad751d0a719d6536b8253d8111b0ba4492398c
parentb1d20e1c990dcfcfb847fc78488895ca5f43dc7f (diff)
downloadlibapr-fa410b0b7c99d2a36007d391ded4aa3e2f41d530.tar.gz
fix the type of the length parameter to apr_hash_this()
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62122 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--test/testhash.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/testhash.c b/test/testhash.c
index d72eaf17b..fa9d60dfb 100644
--- a/test/testhash.c
+++ b/test/testhash.c
@@ -71,12 +71,12 @@ static void dump_hash(apr_pool_t *p, apr_hash_t *h)
{
apr_hash_index_t *hi;
char *val, *key;
- int len;
+ apr_ssize_t len;
int i = 0;
for (hi = apr_hash_first(p, h); hi; hi = apr_hash_next(hi)) {
- apr_hash_this(hi,(void*) &key, &len,(void*) &val);
- fprintf(stdout, "Key %s (%d) Value %s\n",key,len,val);
+ apr_hash_this(hi,(void*) &key, &len, (void*) &val);
+ fprintf(stdout, "Key %s (%" APR_SSIZE_T_FMT ") Value %s\n", key, len, val);
i++;
}
if (i != apr_hash_count(h))