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/normal.c | |
parent | fdbf383a52111014f7e41fde0f1e8ee209679412 (diff) | |
download | idevicerestore-012e0aa3d458a44ae3808707b9d5b6038d9095a6.tar.gz idevicerestore-012e0aa3d458a44ae3808707b9d5b6038d9095a6.tar.bz2 |
Fix some variable types for more consistency
Diffstat (limited to 'src/normal.c')
-rw-r--r-- | src/normal.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/normal.c b/src/normal.c index b7f9f9d..efe8f03 100644 --- a/src/normal.c +++ b/src/normal.c @@ -323,7 +323,7 @@ plist_t normal_get_lockdown_value(struct idevicerestore_client_t* client, const return node; } -static int normal_get_nonce_by_key(struct idevicerestore_client_t* client, const char* key, unsigned char** nonce, int* nonce_size) +static int normal_get_nonce_by_key(struct idevicerestore_client_t* client, const char* key, unsigned char** nonce, unsigned int* nonce_size) { plist_t nonce_node = normal_get_lockdown_value(client, NULL, key); @@ -334,18 +334,18 @@ static int normal_get_nonce_by_key(struct idevicerestore_client_t* client, const uint64_t n_size = 0; plist_get_data_val(nonce_node, (char**)nonce, &n_size); - *nonce_size = (int)n_size; + *nonce_size = (unsigned int)n_size; plist_free(nonce_node); return 0; } -int normal_get_sep_nonce(struct idevicerestore_client_t* client, unsigned char** nonce, int* nonce_size) +int normal_get_sep_nonce(struct idevicerestore_client_t* client, unsigned char** nonce, unsigned int* nonce_size) { return normal_get_nonce_by_key(client, "SEPNonce", nonce, nonce_size); } -int normal_get_ap_nonce(struct idevicerestore_client_t* client, unsigned char** nonce, int* nonce_size) +int normal_get_ap_nonce(struct idevicerestore_client_t* client, unsigned char** nonce, unsigned int* nonce_size) { return normal_get_nonce_by_key(client, "ApNonce", nonce, nonce_size); } |