Commit b2b4e186 authored by antirez's avatar antirez
Browse files

Explicitly cast void pointers to char pointers for printf style logging.

parent 42ec8e8c
...@@ -1285,7 +1285,7 @@ void xreadCommand(client *c) { ...@@ -1285,7 +1285,7 @@ void xreadCommand(client *c) {
addReplyErrorFormat(c, "-NOGROUP No such key '%s' or consumer " addReplyErrorFormat(c, "-NOGROUP No such key '%s' or consumer "
"group '%s' in XREADGROUP with GROUP " "group '%s' in XREADGROUP with GROUP "
"option", "option",
key->ptr,groupname->ptr); (char*)key->ptr,(char*)groupname->ptr);
goto cleanup; goto cleanup;
} }
groups[id_idx] = group; groups[id_idx] = group;
...@@ -1549,7 +1549,7 @@ NULL ...@@ -1549,7 +1549,7 @@ NULL
{ {
addReplyErrorFormat(c, "-NOGROUP No such consumer group '%s' " addReplyErrorFormat(c, "-NOGROUP No such consumer group '%s' "
"for key name '%s'", "for key name '%s'",
grpname, c->argv[2]->ptr); (char*)grpname, (char*)c->argv[2]->ptr);
return; return;
} }
} }
...@@ -1675,7 +1675,7 @@ void xpendingCommand(client *c) { ...@@ -1675,7 +1675,7 @@ void xpendingCommand(client *c) {
{ {
addReplyErrorFormat(c, "-NOGROUP No such key '%s' or consumer " addReplyErrorFormat(c, "-NOGROUP No such key '%s' or consumer "
"group '%s'", "group '%s'",
key->ptr,groupname->ptr); (char*)key->ptr,(char*)groupname->ptr);
return; return;
} }
...@@ -1851,8 +1851,8 @@ void xclaimCommand(client *c) { ...@@ -1851,8 +1851,8 @@ void xclaimCommand(client *c) {
* is mandatory. */ * is mandatory. */
if (o == NULL || group == NULL) { if (o == NULL || group == NULL) {
addReplyErrorFormat(c,"-NOGROUP No such key '%s' or " addReplyErrorFormat(c,"-NOGROUP No such key '%s' or "
"consumer group '%s'", c->argv[1]->ptr, "consumer group '%s'", (char*)c->argv[1]->ptr,
c->argv[2]->ptr); (char*)c->argv[2]->ptr);
return; return;
} }
...@@ -2137,7 +2137,7 @@ NULL ...@@ -2137,7 +2137,7 @@ NULL
if (cg == NULL) { if (cg == NULL) {
addReplyErrorFormat(c, "-NOGROUP No such consumer group '%s' " addReplyErrorFormat(c, "-NOGROUP No such consumer group '%s' "
"for key name '%s'", "for key name '%s'",
c->argv[3]->ptr, key->ptr); (char*)c->argv[3]->ptr, (char*)key->ptr);
return; return;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment