summaryrefslogtreecommitdiff
path: root/ev.c
diff options
context:
space:
mode:
authorroot <root>2007-11-01 15:21:13 +0000
committerroot <root>2007-11-01 15:21:13 +0000
commitd41579a0646e8afb2d9f3923b93efae744e77cdd (patch)
tree09551dad1bf03f838ad58a535bf194aa03fc349f /ev.c
parent63cc9a6e0c86c72cc437237441d9122a880fb1d7 (diff)
added event compatibility layer
Diffstat (limited to 'ev.c')
-rw-r--r--ev.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ev.c b/ev.c
index b962b74..ce730b5 100644
--- a/ev.c
+++ b/ev.c
@@ -368,17 +368,17 @@ static void
sigcb (struct ev_io *iow, int revents)
{
struct ev_signal *w;
- int sig;
+ int signum;
read (sigpipe [0], &revents, 1);
gotsig = 0;
- for (sig = signalmax; sig--; )
- if (signals [sig].gotsig)
+ for (signum = signalmax; signum--; )
+ if (signals [signum].gotsig)
{
- signals [sig].gotsig = 0;
+ signals [signum].gotsig = 0;
- for (w = signals [sig].head; w; w = w->next)
+ for (w = signals [signum].head; w; w = w->next)
event ((W)w, EV_SIGNAL);
}
}