MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / rewriteConfigOctalOption

Function rewriteConfigOctalOption

src/config.cpp:1605–1610  ·  view source on GitHub ↗

Rewrite an octal option. */

Source from the content-addressed store, hash-verified

1603
1604/* Rewrite an octal option. */
1605void rewriteConfigOctalOption(struct rewriteConfigState *state, const char *option, int value, int defvalue) {
1606 int force = value != defvalue;
1607 sds line = sdscatprintf(sdsempty(),"%s %o",option,value);
1608
1609 rewriteConfigRewriteLine(state,option,line,force);
1610}
1611
1612/* Rewrite an enumeration option. It takes as usually state and option name,
1613 * and in addition the enumeration array and the default value for the

Callers 1

rewriteConfigFunction · 0.85

Calls 3

sdscatprintfFunction · 0.85
sdsemptyFunction · 0.85
rewriteConfigRewriteLineFunction · 0.85

Tested by

no test coverage detected