summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2017-05-03 14:10:21 +0200
committerantirez <antirez@gmail.com>2017-05-03 14:10:21 +0200
commit6798736909b7301242b023c288d2a956ec7154f4 (patch)
tree302c7364dd687f0e660d6d52aaa6ca83b96658ad /src/modules
parent1ed2ff55700b9b3008d3875352c4e820e0691ec8 (diff)
downloadredis-6798736909b7301242b023c288d2a956ec7154f4.tar.gz
Modules: remove unused var in example module.
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/helloworld.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/modules/helloworld.c b/src/modules/helloworld.c
index 4e30af2a0..3b00dea77 100644
--- a/src/modules/helloworld.c
+++ b/src/modules/helloworld.c
@@ -241,7 +241,6 @@ int HelloRepl1_RedisCommand(RedisModuleCtx *ctx, RedisModuleString **argv, int a
{
REDISMODULE_NOT_USED(argv);
REDISMODULE_NOT_USED(argc);
- RedisModuleCallReply *reply;
RedisModule_AutoMemory(ctx);
/* This will be replicated *after* the two INCR statements, since
@@ -258,8 +257,8 @@ int HelloRepl1_RedisCommand(RedisModuleCtx *ctx, RedisModuleString **argv, int a
/* Using the "!" modifier we replicate the command if it
* modified the dataset in some way. */
- reply = RedisModule_Call(ctx,"INCR","c!","foo");
- reply = RedisModule_Call(ctx,"INCR","c!","bar");
+ RedisModule_Call(ctx,"INCR","c!","foo");
+ RedisModule_Call(ctx,"INCR","c!","bar");
RedisModule_ReplyWithLongLong(ctx,0);