--- a/src/drivers/io_osx.m Wed Oct 07 17:53:56 2009 +1000 +++ b/src/drivers/io_osx.m Wed Feb 04 08:38:23 2015 +1000 @@ -30,8 +30,6 @@ struct io_osx_cbinfo *next; }; -static struct io_osx_cbinfo *cbinfo_list = NULL; - void io_unregister_callback( struct io_osx_cbinfo *cbinfo ) { CFRunLoopRemoveSource( CFRunLoopGetCurrent(), cbinfo->sourceRef, kCFRunLoopCommonModes ); @@ -114,7 +112,7 @@ fdContext.version = 0; fdContext.retain = NULL; fdContext.info = cbinfo; - fdContext.release = io_osx_release; + fdContext.release = ( void (*)(void *) )io_osx_release; fdContext.copyDescription = NULL; CFFileDescriptorRef ref = CFFileDescriptorCreate( kCFAllocatorDefault, fd, FALSE,