From c752e8780b043c8822be2417cc5596b8f2ad9c0b Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Tue, 1 Jul 2025 00:45:50 +0200 Subject: Update codebase to use (const) void* and size_t where applicable --- src/recovery.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/recovery.c') diff --git a/src/recovery.c b/src/recovery.c index 3c0027f..ccea423 100644 --- a/src/recovery.c +++ b/src/recovery.c @@ -280,8 +280,8 @@ int recovery_send_ticket(struct idevicerestore_client_t* client) int recovery_send_component(struct idevicerestore_client_t* client, plist_t build_identity, const char* component) { - unsigned int size = 0; - unsigned char* data = NULL; + size_t size = 0; + void* data = NULL; char* path = NULL; irecv_error_t err = 0; @@ -298,8 +298,8 @@ int recovery_send_component(struct idevicerestore_client_t* client, plist_t buil } } - unsigned char* component_data = NULL; - unsigned int component_size = 0; + void* component_data = NULL; + size_t component_size = 0; int ret = extract_component(client->ipsw, path, &component_data, &component_size); free(path); if (ret < 0) { @@ -314,7 +314,7 @@ int recovery_send_component(struct idevicerestore_client_t* client, plist_t buil return -1; } - logger(LL_INFO, "Sending %s (%d bytes)...\n", component, size); + logger(LL_INFO, "Sending %s (%zu bytes)...\n", component, size); // FIXME: Did I do this right???? err = irecv_send_buffer(client->recovery->client, data, size, 0); -- cgit v1.1-32-gdbae