]> git.llucax.com Git - software/ev.d.git/blobdiff - test.d
Add big unittest.
[software/ev.d.git] / test.d
diff --git a/test.d b/test.d
index 27b1c903cd1898405a6aa8ad850f9648aef8610c..98ea1ecdd7c76889580e10d0c94798125db2eb50 100644 (file)
--- 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);