[MEDIUM] updated all files to use EV_FD_*
Removed the temporary dirty hack.
diff --git a/src/stream_sock.c b/src/stream_sock.c
index f9e5627..a150a08 100644
--- a/src/stream_sock.c
+++ b/src/stream_sock.c
@@ -67,7 +67,7 @@
}
if (max == 0) { /* not anymore room to store data */
- MY_FD_CLR(fd, StaticReadEvent);
+ EV_FD_CLR(fd, DIR_RD);
break;
}
@@ -127,7 +127,7 @@
}
if (b->flags & BF_READ_STATUS) {
- if (b->rto && MY_FD_ISSET(fd, StaticReadEvent))
+ if (b->rto && EV_FD_ISSET(fd, DIR_RD))
tv_delayfrom(&b->rex, &now, b->rto);
else
tv_eternity(&b->rex);
@@ -173,7 +173,7 @@
fdtab[fd].state = FD_STERROR;
task_wakeup(&rq, fdtab[fd].owner);
tv_eternity(&b->wex);
- MY_FD_CLR(fd, StaticWriteEvent);
+ EV_FD_CLR(fd, DIR_WR);
return 0;
}
}
@@ -182,7 +182,7 @@
task_wakeup(&rq, fdtab[fd].owner);
fdtab[fd].state = FD_STREADY;
tv_eternity(&b->wex);
- MY_FD_CLR(fd, StaticWriteEvent);
+ EV_FD_CLR(fd, DIR_WR);
return 0;
}