summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Chapuis <catwell-github@catwell.info>2016-06-05 16:09:55 +0200
committerPierre Chapuis <catwell-github@catwell.info>2016-06-05 16:50:17 +0200
commitb670a1628263cd2655e70ee5c9c947f49fc94647 (patch)
tree140dd2f711bae7409b1acf6030ef81883b3852b0
parent3e9c20f63b9649bf2a8ddce8f4743c7fb5d435b4 (diff)
downloadredis-b670a1628263cd2655e70ee5c9c947f49fc94647.tar.gz
remove unused variable
-rw-r--r--src/t_list.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/t_list.c b/src/t_list.c
index 3e2f0020a..3777395ee 100644
--- a/src/t_list.c
+++ b/src/t_list.c
@@ -195,7 +195,7 @@ void listTypeConvert(robj *subject, int enc) {
*----------------------------------------------------------------------------*/
void pushGenericCommand(client *c, int where) {
- int j, waiting = 0, pushed = 0;
+ int j, pushed = 0;
robj *lobj = lookupKeyWrite(c->db,c->argv[1]);
if (lobj && lobj->type != OBJ_LIST) {
@@ -214,7 +214,7 @@ void pushGenericCommand(client *c, int where) {
listTypePush(lobj,c->argv[j],where);
pushed++;
}
- addReplyLongLong(c, waiting + (lobj ? listTypeLength(lobj) : 0));
+ addReplyLongLong(c, (lobj ? listTypeLength(lobj) : 0));
if (pushed) {
char *event = (where == LIST_HEAD) ? "lpush" : "rpush";