From cda84950bb3ed5b45b816c3e2389c31cbd3a023e Mon Sep 17 00:00:00 2001 From: "Roger A. Light" Date: Thu, 21 Jan 2021 12:01:20 +0000 Subject: [PATCH] Fix mux_epoll__handle() use. --- src/mux.c | 4 +++- src/mux.h | 2 +- src/mux_epoll.c | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/mux.c b/src/mux.c index 02fdf1f2..3703ad5f 100644 --- a/src/mux.c +++ b/src/mux.c @@ -71,7 +71,9 @@ int mux__delete(struct mosquitto *context) int mux__handle(struct mosquitto__listener_sock *listensock, int listensock_count) { #ifdef WITH_EPOLL - return mux_epoll__handle(listensock, listensock_count); + UNUSED(listensock); + UNUSED(listensock_count); + return mux_epoll__handle(); #else return mux_poll__handle(listensock, listensock_count); #endif diff --git a/src/mux.h b/src/mux.h index b004984a..47573b45 100644 --- a/src/mux.h +++ b/src/mux.h @@ -26,7 +26,7 @@ int mux_epoll__add_out(struct mosquitto *context); int mux_epoll__remove_out(struct mosquitto *context); int mux_epoll__add_in(struct mosquitto *context); int mux_epoll__delete(struct mosquitto *context); -int mux_epoll__handle(struct mosquitto__listener_sock *listensock, int listensock_count); +int mux_epoll__handle(void); int mux_epoll__cleanup(void); int mux_poll__init(struct mosquitto__listener_sock *listensock, int listensock_count); diff --git a/src/mux_epoll.c b/src/mux_epoll.c index d21a2713..6b1b2e89 100644 --- a/src/mux_epoll.c +++ b/src/mux_epoll.c @@ -54,6 +54,7 @@ Contributors: #include "mosquitto_broker_internal.h" #include "memory_mosq.h" +#include "mux.h" #include "packet_mosq.h" #include "send_mosq.h" #include "sys_tree.h"