diff options
author | Nikias Bassen | 2023-12-30 17:03:30 +0100 |
---|---|---|
committer | Nikias Bassen | 2023-12-30 17:03:30 +0100 |
commit | 2fff42619eb1bed0c1664c138414320bdb37a486 (patch) | |
tree | 1a29a2a3f130e487c07a819b4593f0fcecc80d18 /src/libirecovery.c | |
parent | 0a0ad0c4f125d7366a56df0e548ee2ca21114c76 (diff) | |
download | libirecovery-2fff42619eb1bed0c1664c138414320bdb37a486.tar.gz libirecovery-2fff42619eb1bed0c1664c138414320bdb37a486.tar.bz2 |
Make it compile again when building --with-dummy
Diffstat (limited to 'src/libirecovery.c')
-rw-r--r-- | src/libirecovery.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/libirecovery.c b/src/libirecovery.c index 2491b66..0babf1d 100644 --- a/src/libirecovery.c +++ b/src/libirecovery.c @@ -1615,15 +1615,11 @@ static irecv_error_t iokit_open_with_ecid(irecv_client_t* pclient, uint64_t ecid return iokit_usb_open_service(pclient, ret_service); } #endif -#endif #ifndef WIN32 #ifndef HAVE_IOKIT static irecv_error_t libusb_usb_open_handle_with_descriptor_and_ecid(irecv_client_t *pclient, struct libusb_device_handle *usb_handle, struct libusb_device_descriptor *usb_descriptor, uint64_t ecid) { - irecv_error_t ret = IRECV_E_UNABLE_TO_CONNECT; - irecv_error_t error = IRECV_E_UNABLE_TO_CONNECT; - irecv_client_t client = (irecv_client_t) malloc(sizeof(struct irecv_client_private)); if (client == NULL) { libusb_close(usb_handle); @@ -1650,9 +1646,8 @@ static irecv_error_t libusb_usb_open_handle_with_descriptor_and_ecid(irecv_clien debug("found device with ECID %016" PRIx64 "\n", (uint64_t)ecid); } - ret = IRECV_E_SUCCESS; *pclient = client; - return ret; + return IRECV_E_SUCCESS; } static irecv_error_t libusb_open_with_ecid(irecv_client_t* pclient, uint64_t ecid) @@ -1719,6 +1714,7 @@ static irecv_error_t libusb_open_with_ecid(irecv_client_t* pclient, uint64_t eci } #endif #endif +#endif irecv_error_t irecv_open_with_ecid(irecv_client_t* pclient, uint64_t ecid) { @@ -3062,7 +3058,6 @@ static irecv_error_t irecv_get_status(irecv_client_t client, unsigned int* statu return IRECV_E_SUCCESS; } -#endif static irecv_error_t irecv_kis_send_buffer(irecv_client_t client, unsigned char* buffer, unsigned long length, int dfu_notify_finished) { @@ -3126,6 +3121,7 @@ static irecv_error_t irecv_kis_send_buffer(irecv_client_t client, unsigned char* return IRECV_E_SUCCESS; } +#endif irecv_error_t irecv_send_buffer(irecv_client_t client, unsigned char* buffer, unsigned long length, int dfu_notify_finished) { |