Fix callback signature for TAP-Win32 device_handle_read().
authorEtienne Dechamps <etienne@edechamps.fr>
Sat, 12 Jul 2014 11:54:45 +0000 (12:54 +0100)
committerEtienne Dechamps <etienne@edechamps.fr>
Sat, 12 Jul 2014 12:34:19 +0000 (13:34 +0100)
commit2d2e94406c5f595eff67a01ee6bb1190f77c37ff
tree297b32e8e683310dcf80aaf38f41e8d79a90487e
parentf693cb7295298ecd6993a4feac1faf9129aa204d
Fix callback signature for TAP-Win32 device_handle_read().

This fixes the following compiler warning when building for Windows:

mingw/device.c: In function ‘setup_device’:
mingw/device.c:186:2: error: passing argument 2 of ‘io_add_event’ from incompatible pointer type [-Werror]
  io_add_event(&device_read_io, device_handle_read, NULL, CreateEvent(NULL, TRUE, FALSE, NULL));
  ^
In file included from mingw/../net.h:27:0,
                 from mingw/../subnet.h:24,
                 from mingw/../conf.h:34,
                 from mingw/device.c:26:
mingw/../event.h:61:13: note: expected ‘io_cb_t’ but argument is of type ‘void (*)(void *)’
 extern void io_add_event(io_t *io, io_cb_t cb, void* data, WSAEVENT event);
src/mingw/device.c