Skip to content
Browse files

use the correct method signature for EIO_WaitEvent

  • Loading branch information...
1 parent 5f3a825 commit 2c6a5f49e132e499d1417580eb56128928f7d1dc Richard Mazorodze committed
Showing with 3 additions and 4 deletions.
  1. +1 −2 src/sdl.cc
  2. +2 −2 src/sdl.h
View
3 src/sdl.cc
@@ -246,10 +246,9 @@ Handle<Value> sdl::SetError(const Arguments& args) {
return Undefined();
}
-static int sdl::EIO_WaitEvent(eio_req *req) {
+static void sdl::EIO_WaitEvent(eio_req *req) {
sdl::closure_t *closure = (sdl::closure_t *) req->data;
closure->status = SDL_WaitEvent(NULL);
- return 0;
}
static int sdl::EIO_OnEvent(eio_req *req) {
View
4 src/sdl.h
@@ -82,8 +82,8 @@ namespace sdl {
Persistent<Function> fn;
int status;
} closure_t;
- static int EIO_WaitEvent(eio_req *req);
- static int EIO_OnEvent(eio_req *req);
+ static void EIO_WaitEvent(eio_req *req);
+ static int EIO_OnEvent(eio_req *req);
}

0 comments on commit 2c6a5f4

Please sign in to comment.
Something went wrong with that request. Please try again.