Rewrite a yes/no option. */
| 1291 | |
| 1292 | /* Rewrite a yes/no option. */ |
| 1293 | void rewriteConfigYesNoOption(struct rewriteConfigState *state, const char *option, int value, int defvalue) { |
| 1294 | int force = value != defvalue; |
| 1295 | sds line = sdscatprintf(sdsempty(),"%s %s",option, |
| 1296 | value ? "yes" : "no"); |
| 1297 | |
| 1298 | rewriteConfigRewriteLine(state,option,line,force); |
| 1299 | } |
| 1300 | |
| 1301 | /* Rewrite a string option. */ |
| 1302 | void rewriteConfigStringOption(struct rewriteConfigState *state, const char *option, char *value, const char *defvalue) { |
no test coverage detected