From: Christophe Jaillet Date: Sun, 24 May 2015 08:09:15 +0000 (+0000) Subject: Constify + save a few bytes in conf pool (+ some minor space adjustments) X-Git-Tag: 2.5.0-alpha~3133 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=28c5067a5efb730f9349cc4fe16d452aacfa9a0d;p=apache Constify + save a few bytes in conf pool (+ some minor space adjustments) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1681424 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/proxy/mod_proxy_express.c b/modules/proxy/mod_proxy_express.c index 1863f745c4..9904fbbd7e 100644 --- a/modules/proxy/mod_proxy_express.c +++ b/modules/proxy/mod_proxy_express.c @@ -22,8 +22,8 @@ module AP_MODULE_DECLARE_DATA proxy_express_module; static int proxy_available = 0; typedef struct { - char *dbmfile; - char *dbmtype; + const char *dbmfile; + const char *dbmtype; int enabled; } express_server_conf; @@ -48,13 +48,14 @@ static const char *set_dbmtype(cmd_parms *cmd, express_server_conf *sconf; sconf = ap_get_module_config(cmd->server->module_config, &proxy_express_module); - sconf->dbmtype = apr_pstrdup(cmd->pool, arg); + sconf->dbmtype = arg; + return NULL; } static const char *set_enabled(cmd_parms *cmd, - void *dconf, - int flag) + void *dconf, + int flag) { express_server_conf *sconf; sconf = ap_get_module_config(cmd->server->module_config, &proxy_express_module); @@ -220,4 +221,3 @@ AP_DECLARE_MODULE(proxy_express) = command_table, /* table of config file commands */ register_hooks /* register hooks */ }; -