From faaaffdec0cd39952a2d95fb014d2319d5688fd3 Mon Sep 17 00:00:00 2001 From: Alex 'AdUser' Z Date: Sat, 24 Sep 2016 00:05:50 +1000 Subject: [PATCH] * source/redis.c : add errcb() stub --- src/sources/redis.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/sources/redis.c b/src/sources/redis.c index 5a7b35a..877adda 100644 --- a/src/sources/redis.c +++ b/src/sources/redis.c @@ -26,6 +26,12 @@ struct _config { redisContext *conn; }; +static void +errcb_stub(char *str) { + assert(str != NULL); + (void)(str); +} + static bool redis_connect(cfg_t *cfg) { assert(cfg != NULL); @@ -95,6 +101,7 @@ create(const char *init) { strlcpy(cfg->name, init, sizeof(cfg->name)); strlcpy(cfg->hash, "f2b-banned-", sizeof(cfg->hash)); strlcat(cfg->hash, init, sizeof(cfg->hash)); + cfg->errcb = &errcb_stub; return cfg; }