X-Git-Url: https://git.llucax.com/software/eventxx.git/blobdiff_plain/3de7450f04f8d9cd241eb600da57cbe0539aa62c..a40aa4e85b7652886bda0669191a2185bfcbfc2d:/test/test-eof.cpp diff --git a/test/test-eof.cpp b/test/test-eof.cpp index a76b6b4..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. * @@ -20,12 +20,12 @@ #include #include -#include +#include int test_okay = 1; int called = 0; -event::dispatcher d; -event::cevent* ev; +eventxx::dispatcher d; +eventxx::cevent* ev; void read_cb(int fd, short event, void *arg) @@ -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 event::cevent(pair[1], EV_READ, read_cb, NULL); + ev = new eventxx::cevent(pair[1], eventxx::READ, read_cb, NULL); d.add(*ev);