Rewrite a yes/no option. */
| 1542 | |
| 1543 | /* Rewrite a yes/no option. */ |
| 1544 | void rewriteConfigYesNoOption(struct rewriteConfigState *state, const char *option, int value, int defvalue) { |
| 1545 | int force = value != defvalue; |
| 1546 | sds line = sdscatprintf(sdsempty(),"%s %s",option, |
| 1547 | value ? "yes" : "no"); |
| 1548 | |
| 1549 | rewriteConfigRewriteLine(state,option,line,force); |
| 1550 | } |
| 1551 | |
| 1552 | /* Rewrite a string option. */ |
| 1553 | void rewriteConfigStringOption(struct rewriteConfigState *state, const char *option, const char *value, const char *defvalue) { |
no test coverage detected