Fix mux_epoll__handle() use.

pull/2064/head
Roger A. Light 5 years ago
parent a4389fc9ce
commit cda84950bb

@ -71,7 +71,9 @@ int mux__delete(struct mosquitto *context)
int mux__handle(struct mosquitto__listener_sock *listensock, int listensock_count) int mux__handle(struct mosquitto__listener_sock *listensock, int listensock_count)
{ {
#ifdef WITH_EPOLL #ifdef WITH_EPOLL
return mux_epoll__handle(listensock, listensock_count); UNUSED(listensock);
UNUSED(listensock_count);
return mux_epoll__handle();
#else #else
return mux_poll__handle(listensock, listensock_count); return mux_poll__handle(listensock, listensock_count);
#endif #endif

@ -26,7 +26,7 @@ int mux_epoll__add_out(struct mosquitto *context);
int mux_epoll__remove_out(struct mosquitto *context); int mux_epoll__remove_out(struct mosquitto *context);
int mux_epoll__add_in(struct mosquitto *context); int mux_epoll__add_in(struct mosquitto *context);
int mux_epoll__delete(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_epoll__cleanup(void);
int mux_poll__init(struct mosquitto__listener_sock *listensock, int listensock_count); int mux_poll__init(struct mosquitto__listener_sock *listensock, int listensock_count);

@ -54,6 +54,7 @@ Contributors:
#include "mosquitto_broker_internal.h" #include "mosquitto_broker_internal.h"
#include "memory_mosq.h" #include "memory_mosq.h"
#include "mux.h"
#include "packet_mosq.h" #include "packet_mosq.h"
#include "send_mosq.h" #include "send_mosq.h"
#include "sys_tree.h" #include "sys_tree.h"

Loading…
Cancel
Save