X-Git-Url: https://git.llucax.com/software/eventxx.git/blobdiff_plain/753d062f3c4cf8f15d064bafdc76210dc37acb9f..a40aa4e85b7652886bda0669191a2185bfcbfc2d:/test/test-eof.cpp?ds=sidebyside diff --git a/test/test-eof.cpp b/test/test-eof.cpp index 9f6220f..c1c05db 100644 --- a/test/test-eof.cpp +++ b/test/test-eof.cpp @@ -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);