From 9b2adb19dd2c4db35ac63037dfb1775a61f12b61 Mon Sep 17 00:00:00 2001 From: Qix Date: Sun, 19 May 2019 22:18:10 +0200 Subject: [PATCH] cast void data pointer to const char * to fix gcc Former-commit-id: a78169e9e043aea83c3f8b8fbb14e605575f8575 --- src/modules/hellotimer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/hellotimer.c b/src/modules/hellotimer.c index 57b111b7c..27da7ec1b 100644 --- a/src/modules/hellotimer.c +++ b/src/modules/hellotimer.c @@ -40,7 +40,7 @@ /* Timer callback. */ void timerHandler(RedisModuleCtx *ctx, void *data) { REDISMODULE_NOT_USED(ctx); - printf("Fired %s!\n", data); + printf("Fired %s!\n", (const char *) data); RedisModule_Free(data); }