X-Git-Url: https://git.llucax.com/software/eventxx.git/blobdiff_plain/753d062f3c4cf8f15d064bafdc76210dc37acb9f..a40aa4e85b7652886bda0669191a2185bfcbfc2d:/test/test-weof.cpp?ds=inline diff --git a/test/test-weof.cpp b/test/test-weof.cpp index b40a487..589df4a 100644 --- a/test/test-weof.cpp +++ b/test/test-weof.cpp @@ -33,7 +33,7 @@ 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 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);