1
0
mirror of https://github.com/fluencelabs/redis synced 2025-03-31 14:51:04 +00:00

ACL: fix compile warnings

This commit is contained in:
zhaozhao.zz 2019-01-21 14:53:46 +08:00
parent c8391388c2
commit ab1992c9c6
2 changed files with 2 additions and 2 deletions

@ -399,7 +399,7 @@ void aclCommand(client *c) {
if (ACLSetUser(u,c->argv[j]->ptr,sdslen(c->argv[j]->ptr)) != C_OK) { if (ACLSetUser(u,c->argv[j]->ptr,sdslen(c->argv[j]->ptr)) != C_OK) {
addReplyErrorFormat(c, addReplyErrorFormat(c,
"Syntax error in ACL SETUSER modifier '%s'", "Syntax error in ACL SETUSER modifier '%s'",
c->argv[j]->ptr); (char*)c->argv[j]->ptr);
return; return;
} }
} }

@ -927,7 +927,7 @@ void configSetCommand(client *c) {
/* The old "requirepass" directive just translates to setting /* The old "requirepass" directive just translates to setting
* a password to the default user. */ * a password to the default user. */
ACLSetUser(DefaultUser,"resetpass",-1); ACLSetUser(DefaultUser,"resetpass",-1);
sds aclop = sdscatprintf(sdsempty(),">%s",o->ptr); sds aclop = sdscatprintf(sdsempty(),">%s",(char*)o->ptr);
ACLSetUser(DefaultUser,aclop,sdslen(aclop)); ACLSetUser(DefaultUser,aclop,sdslen(aclop));
sdsfree(aclop); sdsfree(aclop);
} config_set_special_field("masterauth") { } config_set_special_field("masterauth") {