Skip to content

Commit

Permalink
Correct function prototype for epoll read callback.
Browse files Browse the repository at this point in the history
Found by clang's UndefinedBehaviorSanitizer.
  • Loading branch information
gatzka committed Jul 29, 2024
1 parent d763087 commit 2c9f141
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/linux/test_linux_epoll.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ FAKE_VALUE_FUNC(int, epoll_wait, int, struct epoll_event *, int, int)
FAKE_VALUE_FUNC(int, close, int)
FAKE_VALUE_FUNC(ssize_t, write, int, const void *, size_t)

void epoll_callback(void *, int);
FAKE_VOID_FUNC(epoll_callback, void *, int)
void epoll_callback(void *, enum cio_epoll_error);
FAKE_VOID_FUNC(epoll_callback, void *, enum cio_epoll_error)
void epoll_callback_second_fd(void *, enum cio_epoll_error);
FAKE_VOID_FUNC(epoll_callback_second_fd, void *, enum cio_epoll_error)
void epoll_callback_third_fd(void *, enum cio_epoll_error);
Expand Down

0 comments on commit 2c9f141

Please sign in to comment.