* Compile with:
* c++ -I/usr/local/include -o time-test time-test.cpp -L/usr/local/lib -levent
*
- * Wed 2006-12-27 - Modified by Leandro Lucarella <llucarella@integratech.com.ar>
+ * Wed 2006-12-27 - Modified by Leandro Lucarella <llucax+eventxx@gmail.com>
*
* Adapted to test the C++ inteface.
*
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);