diff options
-rw-r--r-- | include/libirecovery.h | 6 | ||||
-rw-r--r-- | src/libirecovery.c | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/include/libirecovery.h b/include/libirecovery.h index b575fed..7c5b160 100644 --- a/include/libirecovery.h +++ b/include/libirecovery.h @@ -97,8 +97,8 @@ typedef irecv_client_private* irecv_client_t; /* library */ void irecv_set_debug_level(int level); const char* irecv_strerror(irecv_error_t error); -void irecv_init(); -void irecv_exit(); +void irecv_init(void); +void irecv_exit(void); /* device connectivity */ irecv_error_t irecv_open_with_ecid(irecv_client_t* client, unsigned long long ecid); @@ -143,7 +143,7 @@ irecv_error_t irecv_get_mode(irecv_client_t client, int* mode); const struct irecv_device_info* irecv_get_device_info(irecv_client_t client); /* device database queries */ -irecv_device_t irecv_devices_get_all(); +irecv_device_t irecv_devices_get_all(void); irecv_error_t irecv_devices_get_device_by_client(irecv_client_t client, irecv_device_t* device); irecv_error_t irecv_devices_get_device_by_product_type(const char* product_type, irecv_device_t* device); irecv_error_t irecv_devices_get_device_by_hardware_model(const char* hardware_model, irecv_device_t* device); 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; } |