diff --git a/example.c b/example.c index a458409..f229f29 100644 --- a/example.c +++ b/example.c @@ -12,7 +12,7 @@ int main() struct io_context ioc; if (!io_init(&ioc, res, ops, sizeof(res)/sizeof(res[0]), sizeof(ops)/sizeof(ops[0]))) return -1; - + io_handle files[NUM_OPS]; for (int i = 0; i < NUM_OPS; i++) { diff --git a/io.c b/io.c index c497805..ec347c7 100644 --- a/io.c +++ b/io.c @@ -990,11 +990,11 @@ io_wait_internal(struct io_context *ioc, struct io_event *ev) { #if IO_PLATFORM_WINDOWS - io_wait_windows(ioc, ev); + io_wait_internal_windows(ioc, ev); #endif #if IO_PLATFORM_LINUX - io_wait_linux(ioc, ev); + io_wait_internal_linux(ioc, ev); #endif } diff --git a/io.h b/io.h index 56faa1d..727051d 100644 --- a/io.h +++ b/io.h @@ -192,4 +192,4 @@ io_handle io_start_server(struct io_context *ioc, void io_set_callback(struct io_context *ioc, io_handle handle, - io_callback callback); \ No newline at end of file + io_callback callback);