fix some compile warnings

This commit is contained in:
zhaozhao.zz
2018-06-28 17:22:59 +08:00
parent ab55f9da5e
commit 1fcf2737a6
2 changed files with 2 additions and 2 deletions

View File

@ -3525,7 +3525,7 @@ void sentinelSetCommand(client *c) {
badfmt: /* Bad format errors */
if (changes) sentinelFlushConfig();
addReplyErrorFormat(c,"Invalid argument '%s' for SENTINEL SET '%s'",
c->argv[badarg]->ptr,option);
(char*)c->argv[badarg]->ptr,option);
}
/* Our fake PUBLISH command: it is actually useful only to receive hello messages