diff options
author | sundb <sundbcn@gmail.com> | 2020-11-13 21:16:40 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-13 15:16:40 +0200 |
commit | 204a14b8cffba6a23e4e313e248bed7ef5cd8260 (patch) | |
tree | add306a1e30cfff57079a21f8a4140d719f503e8 /src/modules/hellohook.c | |
parent | 92ec5925202db79944e267f3bc367ec3d7bdd6fe (diff) | |
download | redis-204a14b8cffba6a23e4e313e248bed7ef5cd8260.tar.gz |
Fix make warning in hellohook,c and testmodule.c (#8044)
* Fix build warning in hellohook,c and testmodule.c
* Change ci->id type to (unsigned long long)
Diffstat (limited to 'src/modules/hellohook.c')
-rw-r--r-- | src/modules/hellohook.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/hellohook.c b/src/modules/hellohook.c index 7ab78ed07..b451bd975 100644 --- a/src/modules/hellohook.c +++ b/src/modules/hellohook.c @@ -47,7 +47,7 @@ void clientChangeCallback(RedisModuleCtx *ctx, RedisModuleEvent e, uint64_t sub, printf("Client %s event for client #%llu %s:%d\n", (sub == REDISMODULE_SUBEVENT_CLIENT_CHANGE_CONNECTED) ? "connection" : "disconnection", - ci->id,ci->addr,ci->port); + (unsigned long long)ci->id,ci->addr,ci->port); } void flushdbCallback(RedisModuleCtx *ctx, RedisModuleEvent e, uint64_t sub, void *data) |