summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2015-09-24 20:17:04 +0200
committerGravatar Martin Szulecki2015-09-24 20:17:04 +0200
commit6b32c996520b867a5a812eff64e495a65623b445 (patch)
tree5b1e4e2eb063eab388c991de58e67a6d549bb13a
parente4349e5b41e06f710106141e7853c3f7e3899d62 (diff)
downloadlibirecovery-6b32c996520b867a5a812eff64e495a65623b445.tar.gz
libirecovery-6b32c996520b867a5a812eff64e495a65623b445.tar.bz2
Replace () with (void) for proper function prototypes
-rw-r--r--include/libirecovery.h6
-rw-r--r--src/libirecovery.c8
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;
}