X-Git-Url: https://git.llucax.com/software/eventxx.git/blobdiff_plain/ce13dd6e8fa9f96fc4535c942ac091333c562e64..a40aa4e85b7652886bda0669191a2185bfcbfc2d:/test/test-eof.cpp?ds=sidebyside diff --git a/test/test-eof.cpp b/test/test-eof.cpp index 41fdaae..c1c05db 100644 --- a/test/test-eof.cpp +++ b/test/test-eof.cpp @@ -3,7 +3,7 @@ * c++ -I/usr/local/include -o time-test time-test.c -L/usr/local/lib -levent * * - * Wed 2006-12-27 - Modified by Leandro Lucarella + * Wed 2006-12-27 - Modified by Leandro Lucarella * * Adapted to test the C++ inteface. * @@ -50,7 +50,7 @@ read_cb(int fd, short event, void *arg) int main (int argc, char **argv) { - char *test = "test string"; + const char* test = "test string"; int pair[2]; if (socketpair(AF_UNIX, SOCK_STREAM, 0, pair) == -1) @@ -60,7 +60,7 @@ main (int argc, char **argv) shutdown(pair[0], SHUT_WR); /* Initalize one event */ - ev = new eventxx::cevent(pair[1], EV_READ, read_cb, NULL); + ev = new eventxx::cevent(pair[1], eventxx::READ, read_cb, NULL); d.add(*ev);