diff options
| author | 2015-09-24 20:17:04 +0200 | |
|---|---|---|
| committer | 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) { | |||
| 644 | return IRECV_E_SUCCESS; | 644 | return IRECV_E_SUCCESS; |
| 645 | } | 645 | } |
| 646 | 646 | ||
| 647 | IRECV_API void irecv_init() { | 647 | IRECV_API void irecv_init(void) { |
| 648 | #ifndef WIN32 | 648 | #ifndef WIN32 |
| 649 | libusb_init(&libirecovery_context); | 649 | libusb_init(&libirecovery_context); |
| 650 | #endif | 650 | #endif |
| 651 | } | 651 | } |
| 652 | 652 | ||
| 653 | IRECV_API void irecv_exit() { | 653 | IRECV_API void irecv_exit(void) { |
| 654 | #ifndef WIN32 | 654 | #ifndef WIN32 |
| 655 | if (libirecovery_context != NULL) { | 655 | if (libirecovery_context != NULL) { |
| 656 | libusb_exit(libirecovery_context); | 656 | libusb_exit(libirecovery_context); |
| @@ -660,7 +660,7 @@ IRECV_API void irecv_exit() { | |||
| 660 | } | 660 | } |
| 661 | 661 | ||
| 662 | #ifdef __APPLE__ | 662 | #ifdef __APPLE__ |
| 663 | void dummy_callback() { } | 663 | void dummy_callback(void) { } |
| 664 | #endif | 664 | #endif |
| 665 | 665 | ||
| 666 | 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) { | 666 | 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) { | |||
| 1595 | return IRECV_E_SUCCESS; | 1595 | return IRECV_E_SUCCESS; |
| 1596 | } | 1596 | } |
| 1597 | 1597 | ||
| 1598 | IRECV_API irecv_device_t irecv_devices_get_all() { | 1598 | IRECV_API irecv_device_t irecv_devices_get_all(void) { |
| 1599 | return irecv_devices; | 1599 | return irecv_devices; |
| 1600 | } | 1600 | } |
| 1601 | 1601 | ||
