X-Git-Url: https://git.llucax.com/software/eventxx.git/blobdiff_plain/ce13dd6e8fa9f96fc4535c942ac091333c562e64..a40aa4e85b7652886bda0669191a2185bfcbfc2d:/test/test-weof.cpp?ds=inline diff --git a/test/test-weof.cpp b/test/test-weof.cpp index 8bcf684..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. * @@ -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);