mirror of
https://github.com/apache/httpd.git
synced 2026-01-06 09:01:14 +03:00
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
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user