X-Git-Url: https://git.llucax.com/software/ev.d.git/blobdiff_plain/a3183560b58dce04159910ec20b2e8458c4063e4..0e4f389ccd6ca6587237f60c81864c8f17be47e6:/test.d diff --git a/test.d b/test.d index 27b1c90..98ea1ec 100644 --- a/test.d +++ b/test.d @@ -14,7 +14,7 @@ import ev; extern (C) { - static void stdin_cb (ev_loop_t* loop, ev_io *w, int revents) + static void stdin_cb(ev_loop_t* loop, ev_io *w, int revents) { io.writefln("stdin ready"); char[] ln = io.readln(); @@ -34,7 +34,7 @@ void main() ev_io stdin_watcher; ev_timer timeout_watcher; - ev_loop_t* loop = ev_default_loop(); + auto loop = ev_default_loop(); /* initialise an io watcher, then start it */ ev_io_init(&stdin_watcher, &stdin_cb, /*STDIN_FILENO*/ 0, READ);