diff options
author | fidetro | 2020-04-19 00:01:00 +0800 |
---|---|---|
committer | Nikias Bassen | 2020-04-27 06:18:27 +0200 |
commit | 98f2f23cc73f1eda54dc9ce02cc104205e758dea (patch) | |
tree | 159fd683e495fc9a18f564b05dc718ff511c5aaf | |
parent | 5cbf7635e34b68125b01dbc71b333525ad3cea40 (diff) | |
download | libusbmuxd-98f2f23cc73f1eda54dc9ce02cc104205e758dea.tar.gz libusbmuxd-98f2f23cc73f1eda54dc9ce02cc104205e758dea.tar.bz2 |
Fix compiler warning about missing void in function declaration of usbmuxd_unsubscribe()
-rw-r--r-- | include/usbmuxd.h | 2 | ||||
-rw-r--r-- | src/libusbmuxd.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/usbmuxd.h b/include/usbmuxd.h index efda52a..cf9a1e2 100644 --- a/include/usbmuxd.h +++ b/include/usbmuxd.h @@ -132,7 +132,7 @@ int usbmuxd_subscribe(usbmuxd_event_cb_t callback, void *user_data); * @note Deprecated. Use usbmuxd_events_subscribe and usbmuxd_events_unsubscribe instead. * @see usbmuxd_events_unsubscribe */ -int usbmuxd_unsubscribe(); +int usbmuxd_unsubscribe(void); /** * Contacts usbmuxd and retrieves a list of connected devices. diff --git a/src/libusbmuxd.c b/src/libusbmuxd.c index 3987aca..4706343 100644 --- a/src/libusbmuxd.c +++ b/src/libusbmuxd.c @@ -1242,7 +1242,7 @@ USBMUXD_API int usbmuxd_subscribe(usbmuxd_event_cb_t callback, void *user_data) return usbmuxd_events_subscribe(&event_ctx, callback, user_data); } -USBMUXD_API int usbmuxd_unsubscribe() +USBMUXD_API int usbmuxd_unsubscribe(void) { int res = usbmuxd_events_unsubscribe(event_ctx); event_ctx = NULL; |