diff options
author | Greg Stein <gstein@apache.org> | 2001-01-24 10:10:15 +0100 |
---|---|---|
committer | Greg Stein <gstein@apache.org> | 2001-01-24 10:10:15 +0100 |
commit | a0a9ff7bcb70cd12e6002b91e46d722dc84c97ce (patch) | |
tree | 82f11d4e8087614d8f49bd5ecbbf96a5ed62b628 /modules/dav | |
parent | Use a typesafe function for access objects' pools. (diff) | |
download | apache2-a0a9ff7bcb70cd12e6002b91e46d722dc84c97ce.tar.xz apache2-a0a9ff7bcb70cd12e6002b91e46d722dc84c97ce.zip |
Add apr_dbm_get_usednames() so that apr_dbm users can figure out what
filenames are actually used by the apr_dbm implementation for a given
pathname.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87813 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/dav')
-rw-r--r-- | modules/dav/fs/dbm.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/modules/dav/fs/dbm.c b/modules/dav/fs/dbm.c index 0ede48d9df..e355c848c0 100644 --- a/modules/dav/fs/dbm.c +++ b/modules/dav/fs/dbm.c @@ -80,30 +80,14 @@ struct dav_db { apr_dbm_t *file; }; -/* ### temp */ -#include "apr_sdbm.h" - void dav_dbm_get_statefiles(apr_pool_t *p, const char *fname, const char **state1, const char **state2) { - char *work; - int extension; - if (fname == NULL) fname = DAV_FS_STATE_FILE_FOR_DIR; - fname = apr_pstrcat(p, fname, SDBM_DIRFEXT, NULL); - - *state1 = fname; - - work = apr_pstrdup(p, fname); - - /* we know the extension is 4 characters -- len(DIRFEXT) */ - extension = strlen(work) - 4; - memcpy(&work[extension], SDBM_PAGFEXT, 4); - *state2 = work; - + apr_dbm_get_usednames(p, fname, state1, state2); } static dav_error * dav_fs_dbm_error(dav_db *db, apr_pool_t *p, |