diff options
author | Christophe Jaillet <jailletc36@apache.org> | 2015-05-24 14:32:22 +0200 |
---|---|---|
committer | Christophe Jaillet <jailletc36@apache.org> | 2015-05-24 14:32:22 +0200 |
commit | 82c1cabec6e27caa7fbb9c3b858fe47e96f9a353 (patch) | |
tree | 74c8e6d2cfb5ac5ac417854e1f8298a87e3f33d3 /modules/aaa/mod_authn_dbm.c | |
parent | Constify + save a few bytes in conf pool (+ some minor space adjustments) (diff) | |
download | apache2-82c1cabec6e27caa7fbb9c3b858fe47e96f9a353.tar.xz apache2-82c1cabec6e27caa7fbb9c3b858fe47e96f9a353.zip |
Save a few bytes in conf pool and axe a function that duplicates 'ap_set_string_slot'
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1681440 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r-- | modules/aaa/mod_authn_dbm.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/modules/aaa/mod_authn_dbm.c b/modules/aaa/mod_authn_dbm.c index d969c7c63a..0df9b6dc48 100644 --- a/modules/aaa/mod_authn_dbm.c +++ b/modules/aaa/mod_authn_dbm.c @@ -58,23 +58,13 @@ static void *create_authn_dbm_dir_config(apr_pool_t *p, char *d) return conf; } -static const char *set_dbm_type(cmd_parms *cmd, - void *dir_config, - const char *arg) -{ - authn_dbm_config_rec *conf = dir_config; - - conf->dbmtype = apr_pstrdup(cmd->pool, arg); - return NULL; -} - static const command_rec authn_dbm_cmds[] = { AP_INIT_TAKE1("AuthDBMUserFile", ap_set_file_slot, (void *)APR_OFFSETOF(authn_dbm_config_rec, pwfile), OR_AUTHCFG, "dbm database file containing user IDs and passwords"), - AP_INIT_TAKE1("AuthDBMType", set_dbm_type, - NULL, + AP_INIT_TAKE1("AuthDBMType", ap_set_string_slot, + (void *)APR_OFFSETOF(authn_dbm_config_rec, dbmtype), OR_AUTHCFG, "what type of DBM file the user file is"), {NULL} }; |