Skip to content

Commit

Permalink
Fix mux_epoll__handle() use.
Browse files Browse the repository at this point in the history
  • Loading branch information
ralight committed Jan 21, 2021
1 parent a4389fc commit cda8495
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/mux.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/mux.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 1 addition & 0 deletions src/mux_epoll.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause

#include "mosquitto_broker_internal.h"
#include "memory_mosq.h"
#include "mux.h"
#include "packet_mosq.h"
#include "send_mosq.h"
#include "sys_tree.h"
Expand Down

0 comments on commit cda8495

Please sign in to comment.