diff --git a/src/Makefile b/src/Makefile index f602975..72eb0d5 100644 --- a/src/Makefile +++ b/src/Makefile @@ -39,7 +39,7 @@ objects=constraint.o blacklist.o cyclic.o logger.o send.o recv.o state.o monitor ifeq ($(REDIS), true) LDLIBS+=-lhiredis - objects+=module_redis.o redis.o module_ssldb.o + objects+=module_redis.o redis.o CFLAGS+=-DREDIS endif diff --git a/src/output_modules/module_redis.c b/src/output_modules/module_redis.c index c7daabd..a6dc8f8 100644 --- a/src/output_modules/module_redis.c +++ b/src/output_modules/module_redis.c @@ -44,7 +44,7 @@ int redismodule_init(UNUSED struct state_conf *conf) int redismodule_flush(void) { - if (redis_lpush(QUEUE_NAME, buffer, + if (redis_lpush((char *)QUEUE_NAME, buffer, buffer_fill, sizeof(scannable_t))) { return EXIT_FAILURE; } @@ -53,9 +53,8 @@ int redismodule_flush(void) } int redismodule_newip(ipaddr_n_t saddr, UNUSED ipaddr_n_t daddr, - UNUSED port_n_t sport, UNUSED port_n_t dport, UNUSED const char *response_type, int is_repeat, - UNUSED int in_cooldown, UNUSED const u_char *packet) + UNUSED int in_cooldown, UNUSED const u_char *packet, UNUSED size_t len) { if (!is_repeat) { buffer[buffer_fill].ip_address = saddr;