Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
bbe18eac
Commit
bbe18eac
authored
Sep 26, 2018
by
antirez
Browse files
Modules: remove useless defines in hellotimer.c
parent
6c3bfb00
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/modules/Makefile
View file @
bbe18eac
...
@@ -13,7 +13,7 @@ endif
...
@@ -13,7 +13,7 @@ endif
.SUFFIXES
:
.c .so .xo .o
.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
:
.c.xo
:
$(CC)
-I
.
$(CFLAGS)
$(SHOBJ_CFLAGS)
-fPIC
-c
$<
-o
$@
$(CC)
-I
.
$(CFLAGS)
$(SHOBJ_CFLAGS)
-fPIC
-c
$<
-o
$@
...
@@ -43,6 +43,11 @@ hellotimer.xo: ../redismodule.h
...
@@ -43,6 +43,11 @@ hellotimer.xo: ../redismodule.h
hellotimer.so
:
hellotimer.xo
hellotimer.so
:
hellotimer.xo
$(LD)
-o
$@
$<
$(SHOBJ_LDFLAGS)
$(LIBS)
-lc
$(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.xo
:
../redismodule.h
testmodule.so
:
testmodule.xo
testmodule.so
:
testmodule.xo
...
...
src/modules/hellotimer.c
View file @
bbe18eac
...
@@ -37,9 +37,6 @@
...
@@ -37,9 +37,6 @@
#include <ctype.h>
#include <ctype.h>
#include <string.h>
#include <string.h>
#define MSGTYPE_PING 1
#define MSGTYPE_PONG 2
/* Timer callback. */
/* Timer callback. */
void
timerHandler
(
RedisModuleCtx
*
ctx
,
void
*
data
)
{
void
timerHandler
(
RedisModuleCtx
*
ctx
,
void
*
data
)
{
REDISMODULE_NOT_USED
(
ctx
);
REDISMODULE_NOT_USED
(
ctx
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment