void
write_cb(int fd, short event)
{
- char *test = "test string";
+ const char* test = "test string";
int len;
len = write(fd, test, strlen(test) + 1);
return (1);
/* Initalize one event */
- ev = new eventxx::event< cb_t >(pair[1], EV_WRITE, write_cb);
+ ev = new eventxx::event< cb_t >(pair[1], eventxx::WRITE, write_cb);
d.add(*ev);