diff options
author | Nikias Bassen | 2013-11-19 22:09:12 +0100 |
---|---|---|
committer | Nikias Bassen | 2013-11-19 22:09:12 +0100 |
commit | 8b5bfa55de0f46d856d46e44b8ac9b7147b91fae (patch) | |
tree | 0ba06787b979620361e214b74acca23c4a734e3d /src | |
parent | 99d2bf14a08020a4b9b131321381893660a3bcb8 (diff) | |
download | idevicerestore-8b5bfa55de0f46d856d46e44b8ac9b7147b91fae.tar.gz idevicerestore-8b5bfa55de0f46d856d46e44b8ac9b7147b91fae.tar.bz2 |
silence some clang compiler warnings
Diffstat (limited to 'src')
-rw-r--r-- | src/idevicerestore.c | 2 | ||||
-rw-r--r-- | src/restore.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/idevicerestore.c b/src/idevicerestore.c index a09b841..3b35ba8 100644 --- a/src/idevicerestore.c +++ b/src/idevicerestore.c @@ -1409,7 +1409,7 @@ int get_tss_response(struct idevicerestore_client_t* client, plist_t build_ident /* populate parameters */ plist_t parameters = plist_new_dict(); plist_dict_insert_item(parameters, "ApECID", plist_new_uint(client->ecid)); - plist_dict_insert_item(parameters, "ApNonce", plist_new_data(client->nonce, client->nonce_size)); + plist_dict_insert_item(parameters, "ApNonce", plist_new_data((const char*)client->nonce, client->nonce_size)); plist_dict_insert_item(parameters, "ApProductionMode", plist_new_bool(1)); /* create basic request */ diff --git a/src/restore.c b/src/restore.c index bb5b352..2f578ab 100644 --- a/src/restore.c +++ b/src/restore.c @@ -1322,10 +1322,10 @@ int restore_send_baseband_data(restored_client_t restore, struct idevicerestore_ /* populate parameters */ plist_t parameters = plist_new_dict(); plist_dict_insert_item(parameters, "ApECID", plist_new_uint(client->ecid)); - plist_dict_insert_item(parameters, "BbNonce", plist_new_data(bb_nonce, bb_nonce_size)); + plist_dict_insert_item(parameters, "BbNonce", plist_new_data((const char*)bb_nonce, bb_nonce_size)); plist_dict_insert_item(parameters, "BbChipID", plist_new_uint(bb_chip_id)); plist_dict_insert_item(parameters, "BbGoldCertId", plist_new_uint(bb_cert_id)); - plist_dict_insert_item(parameters, "BbSNUM", plist_new_data(bb_snum, bb_snum_size)); + plist_dict_insert_item(parameters, "BbSNUM", plist_new_data((const char*)bb_snum, bb_snum_size)); /* create baseband request */ plist_t request = tss_request_new(NULL); |