apr_register_cleanup(p, NULL, dav_cleanup_liveprops, apr_null_cleanup);
}
- value = (int)apr_hash_get(dav_liveprop_uris, uri, 0);
+ value = (int)apr_hash_get(dav_liveprop_uris, uri, APR_HASH_KEY_STRING);
if (value != 0) {
/* already registered */
return;
}
/* start at 1, and count up */
- apr_hash_set(dav_liveprop_uris, uri, 0, (void *)++dav_liveprop_count);
+ apr_hash_set(dav_liveprop_uris, uri, APR_HASH_KEY_STRING,
+ (void *)++dav_liveprop_count);
}
DAV_DECLARE(int) dav_get_liveprop_ns_index(const char *uri)
{
- return (int)apr_hash_get(dav_liveprop_uris, uri, 0);
+ return (int)apr_hash_get(dav_liveprop_uris, uri, APR_HASH_KEY_STRING);
}
int dav_get_liveprop_ns_count(void)
}
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;
}
/* 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);
}