summaryrefslogtreecommitdiffstats
path: root/src/dfu.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2024-03-23 00:49:55 +0100
committerGravatar Nikias Bassen2024-03-23 00:49:55 +0100
commit012e0aa3d458a44ae3808707b9d5b6038d9095a6 (patch)
treec64b2e93cbf779022f6a944b330f728564695719 /src/dfu.c
parentfdbf383a52111014f7e41fde0f1e8ee209679412 (diff)
downloadidevicerestore-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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dfu.c b/src/dfu.c
index 4487ade..8602bc0 100644
--- a/src/dfu.c
+++ b/src/dfu.c
@@ -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");