From 29d409b3dba08dd36511d3bfa2400355062cef85 Mon Sep 17 00:00:00 2001 From: Brad House Date: Mon, 9 Sep 2024 11:14:47 -0400 Subject: [PATCH] fix docs --- docs.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs.md b/docs.md index 3b3e83a..8005115 100644 --- a/docs.md +++ b/docs.md @@ -162,10 +162,11 @@ void sock_state_cb(void *data, ares_socket_t socket_fd, int readable, int writab } } + /* Update Poll Events (including on Add) */ state->fds[idx].fd = socket_fd; state->fds[idx].events = 0; if (readable) { - state->fds[idx].events |= POLL_IN; + state->fds[idx].events |= POLLIN; } if (writable) { state->fds[idx].events |= POLLOUT;