summaryrefslogtreecommitdiffstats
path: root/modules/dav/main/providers.c
diff options
context:
space:
mode:
authorGreg Stein <gstein@apache.org>2000-10-16 04:58:15 +0200
committerGreg Stein <gstein@apache.org>2000-10-16 04:58:15 +0200
commita5f36457bfe34199513f30330eaf9eb67ae88c57 (patch)
tree5734879c9c965262b6e283b21da23cb4bd377ded /modules/dav/main/providers.c
parent Some issues with the dependencies that prevent a clean checkout from (diff)
downloadapache2-a5f36457bfe34199513f30330eaf9eb67ae88c57.tar.xz
apache2-a5f36457bfe34199513f30330eaf9eb67ae88c57.zip
the zero-length hash key is valid. use (-1) as the discrimnator for
auto-computed string-length hash keys git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86604 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/dav/main/providers.c')
-rw-r--r--modules/dav/main/providers.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/dav/main/providers.c b/modules/dav/main/providers.c
index 2fa704e51d..1a534514df 100644
--- a/modules/dav/main/providers.c
+++ b/modules/dav/main/providers.c
@@ -70,7 +70,7 @@ static apr_status_t dav_cleanup_providers(void *ctx)
}
DAV_DECLARE(void) dav_register_provider(apr_pool_t *p, const char *name,
- const dav_provider *provider)
+ const dav_provider *provider)
{
/* ### ignore the pool; it is NULL right now */
p = ap_global_hook_pool;
@@ -81,10 +81,10 @@ DAV_DECLARE(void) dav_register_provider(apr_pool_t *p, const char *name,
}
/* just set it. no biggy if it was there before. */
- apr_hash_set(dav_repos_providers, name, 0, provider);
+ apr_hash_set(dav_repos_providers, name, APR_HASH_KEY_STRING, provider);
}
const dav_provider * dav_lookup_provider(const char *name)
{
- return apr_hash_get(dav_repos_providers, name, 0);
+ return apr_hash_get(dav_repos_providers, name, APR_HASH_KEY_STRING);
}