From 274718930282ad15732aea9201abb4c80b06ff18 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 18 Jun 2009 18:16:54 +0000 Subject: fixes by Gabriel Kerneis --- ev.pod | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ev.pod') diff --git a/ev.pod b/ev.pod index 496d3f4..71c4347 100644 --- a/ev.pod +++ b/ev.pod @@ -1186,14 +1186,14 @@ programmers): static void t1_cb (EV_P_ ev_timer *w, int revents) { - struct my_biggy big = (struct my_biggy * + struct my_biggy big = (struct my_biggy *) (((char *)w) - offsetof (struct my_biggy, t1)); } static void t2_cb (EV_P_ ev_timer *w, int revents) { - struct my_biggy big = (struct my_biggy * + struct my_biggy big = (struct my_biggy *) (((char *)w) - offsetof (struct my_biggy, t2)); } @@ -1279,7 +1279,7 @@ other events are pending: } static void - idle-cb (EV_P_ ev_idle *w, int revents) + idle_cb (EV_P_ ev_idle *w, int revents) { // actual processing read (STDIN_FILENO, ...); @@ -2370,7 +2370,7 @@ callback, free it. Also, use no error checking, as usual. ev_idle *idle_watcher = malloc (sizeof (ev_idle)); ev_idle_init (idle_watcher, idle_cb); - ev_idle_start (loop, idle_cb); + ev_idle_start (loop, idle_watcher); =head2 C and C - customise your event loop! -- cgit v1.2.3