Rewrite a numerical (long long range) option. */
| 1595 | |
| 1596 | /* Rewrite a numerical (long long range) option. */ |
| 1597 | void rewriteConfigNumericalOption(struct rewriteConfigState *state, const char *option, long long value, long long defvalue) { |
| 1598 | int force = value != defvalue; |
| 1599 | sds line = sdscatprintf(sdsempty(),"%s %lld",option,value); |
| 1600 | |
| 1601 | rewriteConfigRewriteLine(state,option,line,force); |
| 1602 | } |
| 1603 | |
| 1604 | /* Rewrite an octal option. */ |
| 1605 | void rewriteConfigOctalOption(struct rewriteConfigState *state, const char *option, int value, int defvalue) { |
no test coverage detected