diff options
author | Nikias Bassen | 2024-03-23 00:49:55 +0100 |
---|---|---|
committer | Nikias Bassen | 2024-03-23 00:49:55 +0100 |
commit | 012e0aa3d458a44ae3808707b9d5b6038d9095a6 (patch) | |
tree | c64b2e93cbf779022f6a944b330f728564695719 /src/dfu.c | |
parent | fdbf383a52111014f7e41fde0f1e8ee209679412 (diff) | |
download | idevicerestore-012e0aa3d458a44ae3808707b9d5b6038d9095a6.tar.gz idevicerestore-012e0aa3d458a44ae3808707b9d5b6038d9095a6.tar.bz2 |
Fix some variable types for more consistency
Diffstat (limited to 'src/dfu.c')
-rw-r--r-- | src/dfu.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -238,7 +238,7 @@ int dfu_is_image4_supported(struct idevicerestore_client_t* client) return (device_info->ibfl & IBOOT_FLAG_IMAGE4_AWARE); } -int dfu_get_ap_nonce(struct idevicerestore_client_t* client, unsigned char** nonce, int* nonce_size) +int dfu_get_ap_nonce(struct idevicerestore_client_t* client, unsigned char** nonce, unsigned int* nonce_size) { if(client->dfu == NULL) { if (dfu_client_new(client) < 0) { @@ -263,7 +263,7 @@ int dfu_get_ap_nonce(struct idevicerestore_client_t* client, unsigned char** non return 0; } -int dfu_get_sep_nonce(struct idevicerestore_client_t* client, unsigned char** nonce, int* nonce_size) +int dfu_get_sep_nonce(struct idevicerestore_client_t* client, unsigned char** nonce, unsigned int* nonce_size) { if(client->dfu == NULL) { if (dfu_client_new(client) < 0) { @@ -417,7 +417,7 @@ int dfu_enter_recovery(struct idevicerestore_client_t* client, plist_t build_ide /* get nonce */ unsigned char* nonce = NULL; - int nonce_size = 0; + unsigned int nonce_size = 0; int nonce_changed = 0; if (dfu_get_ap_nonce(client, &nonce, &nonce_size) < 0) { error("ERROR: Unable to get ApNonce from device!\n"); |