* [PATCH] epoll: suppress warning for rb_ensure(real_epwait,...)
@ 2019-11-29 21:38 Eric Wong
0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2019-11-29 21:38 UTC (permalink / raw)
To: sleepy-penguin
rb_ensure takes VALUE args, not "void *"
---
ext/sleepy_penguin/epoll.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/ext/sleepy_penguin/epoll.c b/ext/sleepy_penguin/epoll.c
index d692f18..b3f2176 100644
--- a/ext/sleepy_penguin/epoll.c
+++ b/ext/sleepy_penguin/epoll.c
@@ -170,9 +170,10 @@ static VALUE nogvl_wait(void *args)
return (VALUE)n;
}
-static VALUE real_epwait(struct ep_per_thread *ept)
+static VALUE real_epwait(VALUE p)
{
long n;
+ struct ep_per_thread *ept = (struct ep_per_thread *)p;
uint64_t expire_at = ept->timeout > 0 ? now_ms() + ept->timeout : 0;
ept->fd = rb_sp_fileno(ept->io);
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2019-11-29 21:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-29 21:38 [PATCH] epoll: suppress warning for rb_ensure(real_epwait,...) Eric Wong
Code repositories for project(s) associated with this public inbox
https://yhbt.net/sleepy_penguin.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).