Rewrite a numerical (long long range) option. */
| 1344 | |
| 1345 | /* Rewrite a numerical (long long range) option. */ |
| 1346 | void rewriteConfigNumericalOption(struct rewriteConfigState *state, const char *option, long long value, long long defvalue) { |
| 1347 | int force = value != defvalue; |
| 1348 | sds line = sdscatprintf(sdsempty(),"%s %lld",option,value); |
| 1349 | |
| 1350 | rewriteConfigRewriteLine(state,option,line,force); |
| 1351 | } |
| 1352 | |
| 1353 | /* Rewrite an octal option. */ |
| 1354 | void rewriteConfigOctalOption(struct rewriteConfigState *state, char *option, int value, int defvalue) { |
no test coverage detected