]> granicus.if.org Git - apache/commitdiff
Constify + save a few bytes in conf pool (+ some minor space adjustments)
authorChristophe Jaillet <jailletc36@apache.org>
Sun, 24 May 2015 08:09:15 +0000 (08:09 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Sun, 24 May 2015 08:09:15 +0000 (08:09 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1681424 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/mod_proxy_express.c

index 1863f745c4f61b891043a180f426341ce8479ec8..9904fbbd7e82b178a09c9d27c344cefd24eec1d8 100644 (file)
@@ -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 */
 };
-