diff --git a/src/config.c b/src/config.c index fcc53af13..ba1774215 100644 --- a/src/config.c +++ b/src/config.c @@ -1018,7 +1018,7 @@ void configGetCommand(client *c) { * CONFIG REWRITE implementation *----------------------------------------------------------------------------*/ -#define REDIS_CONFIG_REWRITE_SIGNATURE "# Generated by CONFIG REWRITE" +#define CONFIG_REWRITE_SIGNATURE "# Generated by CONFIG REWRITE" /* We use the following dictionary type to store where a configuration * option is mentioned in the old configuration file, so it's @@ -1159,7 +1159,7 @@ struct rewriteConfigState *rewriteConfigReadOldFile(char *path) { /* Handle comments and empty lines. */ if (line[0] == '#' || line[0] == '\0') { - if (state->needs_signature && !strcmp(line,REDIS_CONFIG_REWRITE_SIGNATURE)) + if (state->needs_signature && !strcmp(line,CONFIG_REWRITE_SIGNATURE)) state->needs_signature = 0; rewriteConfigAppendLine(state,line); continue; @@ -1264,7 +1264,7 @@ int rewriteConfigRewriteLine(struct rewriteConfigState *state, const char *optio /* Append a new line. */ if (state->needs_signature) { rewriteConfigAppendLine(state, - sdsnew(REDIS_CONFIG_REWRITE_SIGNATURE)); + sdsnew(CONFIG_REWRITE_SIGNATURE)); state->needs_signature = 0; } rewriteConfigAppendLine(state,line);