summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2018-09-26 17:42:00 +0200
committerantirez <antirez@gmail.com>2018-09-26 17:42:00 +0200
commitbbe18eacda69797aded8686a63e853b11fd4e222 (patch)
treedd416ac29cc366b5f9c7f7e3bd3adc28d17dbcdc
parent6c3bfb00fc17ac1a1c3ba75d2945f8d189415c8f (diff)
downloadredis-bbe18eacda69797aded8686a63e853b11fd4e222.tar.gz
Modules: remove useless defines in hellotimer.c
-rw-r--r--src/modules/Makefile7
-rw-r--r--src/modules/hellotimer.c3
2 files changed, 6 insertions, 4 deletions
diff --git a/src/modules/Makefile b/src/modules/Makefile
index cffe68994..51ffac17d 100644
--- a/src/modules/Makefile
+++ b/src/modules/Makefile
@@ -13,7 +13,7 @@ endif
.SUFFIXES: .c .so .xo .o
-all: helloworld.so hellotype.so helloblock.so testmodule.so hellocluster.so hellotimer.so
+all: helloworld.so hellotype.so helloblock.so testmodule.so hellocluster.so hellotimer.so hellodict.so
.c.xo:
$(CC) -I. $(CFLAGS) $(SHOBJ_CFLAGS) -fPIC -c $< -o $@
@@ -43,6 +43,11 @@ hellotimer.xo: ../redismodule.h
hellotimer.so: hellotimer.xo
$(LD) -o $@ $< $(SHOBJ_LDFLAGS) $(LIBS) -lc
+hellodict.xo: ../redismodule.h
+
+hellodict.so: hellodict.xo
+ $(LD) -o $@ $< $(SHOBJ_LDFLAGS) $(LIBS) -lc
+
testmodule.xo: ../redismodule.h
testmodule.so: testmodule.xo
diff --git a/src/modules/hellotimer.c b/src/modules/hellotimer.c
index a2e53405f..57b111b7c 100644
--- a/src/modules/hellotimer.c
+++ b/src/modules/hellotimer.c
@@ -37,9 +37,6 @@
#include <ctype.h>
#include <string.h>
-#define MSGTYPE_PING 1
-#define MSGTYPE_PONG 2
-
/* Timer callback. */
void timerHandler(RedisModuleCtx *ctx, void *data) {
REDISMODULE_NOT_USED(ctx);