diff options
author | trawick <trawick@13f79535-47bb-0310-9956-ffa450edef68> | 2001-03-07 17:57:19 +0000 |
---|---|---|
committer | trawick <trawick@13f79535-47bb-0310-9956-ffa450edef68> | 2001-03-07 17:57:19 +0000 |
commit | 769c56ce0b9a12065fd7f13a627cb74768e800ae (patch) | |
tree | bd0c2c03a57d73625db41795e88b2edf48d85018 /tables | |
parent | a15a0500ae23d86b0c9f7228585f9f2a4b773438 (diff) | |
download | libapr-769c56ce0b9a12065fd7f13a627cb74768e800ae.tar.gz |
Change the return type of apr_hash_count() to some counter type
("int") instead of a size type (apr_size_t).
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61345 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'tables')
-rw-r--r-- | tables/apr_hash.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tables/apr_hash.c b/tables/apr_hash.c index ecaf13d67..7e7a59ba4 100644 --- a/tables/apr_hash.c +++ b/tables/apr_hash.c @@ -100,7 +100,7 @@ struct apr_hash_entry_t { struct apr_hash_t { apr_pool_t *pool; apr_hash_entry_t **array; - apr_size_t count, max; + int count, max; }; #define INITIAL_MAX 15 /* tunable == 2^n - 1 */ @@ -114,7 +114,7 @@ struct apr_hash_t { struct apr_hash_index_t { apr_hash_t *ht; apr_hash_entry_t *this, *next; - apr_size_t index; + int index; }; @@ -122,7 +122,7 @@ struct apr_hash_index_t { * Hash creation functions. */ -static apr_hash_entry_t **alloc_array(apr_hash_t *ht, apr_size_t max) +static apr_hash_entry_t **alloc_array(apr_hash_t *ht, int max) { return apr_pcalloc(ht->pool, sizeof(*ht->array) * (max + 1)); } @@ -185,7 +185,7 @@ static void expand_array(apr_hash_t *ht) { apr_hash_index_t *hi; apr_hash_entry_t **new_array; - apr_size_t new_max; + int new_max; int i; new_max = ht->max * 2 + 1; @@ -315,7 +315,7 @@ APR_DECLARE(void) apr_hash_set(apr_hash_t *ht, /* else key not present and val==NULL */ } -APR_DECLARE(apr_size_t) apr_hash_count(apr_hash_t *ht) +APR_DECLARE(int) apr_hash_count(apr_hash_t *ht) { return ht->count; } |