From: Christophe Jaillet Date: Tue, 2 Jun 2015 05:54:58 +0000 (+0000) Subject: Constify + save a few bytes in conf pool X-Git-Tag: 2.5.0-alpha~3108 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bc14023e266d4e1dc707c0a8ad5a4620fb9cc68c;p=apache Constify + save a few bytes in conf pool git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1683047 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/filters/mod_deflate.c b/modules/filters/mod_deflate.c index 3ee9efe196..c65d029383 100644 --- a/modules/filters/mod_deflate.c +++ b/modules/filters/mod_deflate.c @@ -66,9 +66,9 @@ typedef struct deflate_filter_config_t int memlevel; int compressionlevel; int bufferSize; - char *note_ratio_name; - char *note_input_name; - char *note_output_name; + const char *note_ratio_name; + const char *note_input_name; + const char *note_output_name; int etag_opt; } deflate_filter_config; @@ -267,16 +267,16 @@ static const char *deflate_set_note(cmd_parms *cmd, void *dummy, &deflate_module); if (arg2 == NULL) { - c->note_ratio_name = apr_pstrdup(cmd->pool, arg1); + c->note_ratio_name = arg1; } else if (!strcasecmp(arg1, "ratio")) { - c->note_ratio_name = apr_pstrdup(cmd->pool, arg2); + c->note_ratio_name = arg2; } else if (!strcasecmp(arg1, "input")) { - c->note_input_name = apr_pstrdup(cmd->pool, arg2); + c->note_input_name = arg2; } else if (!strcasecmp(arg1, "output")) { - c->note_output_name = apr_pstrdup(cmd->pool, arg2); + c->note_output_name = arg2; } else { return apr_psprintf(cmd->pool, "Unknown note type %s", arg1);