diff options
author | Martin Szulecki | 2015-09-24 20:17:04 +0200 |
---|---|---|
committer | Martin Szulecki | 2015-09-24 20:17:04 +0200 |
commit | 6b32c996520b867a5a812eff64e495a65623b445 (patch) | |
tree | 5b1e4e2eb063eab388c991de58e67a6d549bb13a /src/libirecovery.c | |
parent | e4349e5b41e06f710106141e7853c3f7e3899d62 (diff) | |
download | libirecovery-6b32c996520b867a5a812eff64e495a65623b445.tar.gz libirecovery-6b32c996520b867a5a812eff64e495a65623b445.tar.bz2 |
Replace () with (void) for proper function prototypes
Diffstat (limited to 'src/libirecovery.c')
-rw-r--r-- | src/libirecovery.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libirecovery.c b/src/libirecovery.c index 47ca81f..e646ce9 100644 --- a/src/libirecovery.c +++ b/src/libirecovery.c @@ -644,13 +644,13 @@ static int check_context(irecv_client_t client) { return IRECV_E_SUCCESS; } -IRECV_API void irecv_init() { +IRECV_API void irecv_init(void) { #ifndef WIN32 libusb_init(&libirecovery_context); #endif } -IRECV_API void irecv_exit() { +IRECV_API void irecv_exit(void) { #ifndef WIN32 if (libirecovery_context != NULL) { libusb_exit(libirecovery_context); @@ -660,7 +660,7 @@ IRECV_API void irecv_exit() { } #ifdef __APPLE__ - void dummy_callback() { } + void dummy_callback(void) { } #endif IRECV_API int irecv_usb_control_transfer(irecv_client_t client, uint8_t bm_request_type, uint8_t b_request, uint16_t w_value, uint16_t w_index, unsigned char *data, uint16_t w_length, unsigned int timeout) { @@ -1595,7 +1595,7 @@ IRECV_API irecv_error_t irecv_finish_transfer(irecv_client_t client) { return IRECV_E_SUCCESS; } -IRECV_API irecv_device_t irecv_devices_get_all() { +IRECV_API irecv_device_t irecv_devices_get_all(void) { return irecv_devices; } |