X-Git-Url: https://git.llucax.com/software/eventxx.git/blobdiff_plain/3de7450f04f8d9cd241eb600da57cbe0539aa62c..2c722f14fdce3f1a32bf26eb26d316cced826ba4:/test/test-weof.cpp diff --git a/test/test-weof.cpp b/test/test-weof.cpp index 90f2c08..589df4a 100644 --- a/test/test-weof.cpp +++ b/test/test-weof.cpp @@ -2,7 +2,7 @@ * 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 + * Wed 2006-12-27 - Modified by Leandro Lucarella * * Adapted to test the C++ inteface. * @@ -20,20 +20,20 @@ #include #include -#include +#include typedef void (cb_t)(int, short); int pair[2]; int test_okay = 1; int called = 0; -event::dispatcher d; -event::event< cb_t >* ev; +eventxx::dispatcher d; +eventxx::event< cb_t >* ev; 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); @@ -61,7 +61,7 @@ main (int argc, char **argv) return (1); /* Initalize one event */ - ev = new event::event< cb_t >(pair[1], EV_WRITE, write_cb); + ev = new eventxx::event< cb_t >(pair[1], eventxx::WRITE, write_cb); d.add(*ev);