diff options
author | Nikias Bassen | 2013-10-02 19:29:04 +0200 |
---|---|---|
committer | Nikias Bassen | 2013-10-02 19:29:04 +0200 |
commit | b040d1b5f4732a431c1d900b55d6bbd3684f6c74 (patch) | |
tree | 90707c0dfebcddb763ceb322f61b2a3ca4a95abd /src/idevicerestore.c | |
parent | 4f6e61eb9ec0af09a85bcbd83e6897782eb669aa (diff) | |
download | idevicerestore-b040d1b5f4732a431c1d900b55d6bbd3684f6c74.tar.gz idevicerestore-b040d1b5f4732a431c1d900b55d6bbd3684f6c74.tar.bz2 |
ipsw: change buffers to use type unsigned char*
Diffstat (limited to 'src/idevicerestore.c')
-rw-r--r-- | src/idevicerestore.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/idevicerestore.c b/src/idevicerestore.c index f64db02..ca760d4 100644 --- a/src/idevicerestore.c +++ b/src/idevicerestore.c @@ -242,8 +242,8 @@ int idevicerestore_start(struct idevicerestore_client_t* client) char wtfname[256]; sprintf(wtfname, "Firmware/dfu/WTF.s5l%04xxall.RELEASE.dfu", cpid); - char* wtftmp = NULL; - uint32_t wtfsize = 0; + unsigned char* wtftmp = NULL; + unsigned int wtfsize = 0; ipsw_extract_to_memory(wtfipsw, wtfname, &wtftmp, &wtfsize); if (!wtftmp) { error("ERROR: Could not extract WTF\n"); @@ -392,7 +392,7 @@ int idevicerestore_start(struct idevicerestore_client_t* client) char *files[16]; char *fmanifest = NULL; uint32_t msize = 0; - if (ipsw_extract_to_memory(client->ipsw, tmpstr, &fmanifest, &msize) < 0) { + if (ipsw_extract_to_memory(client->ipsw, tmpstr, (unsigned char**)&fmanifest, &msize) < 0) { error("ERROR: could not extract %s from IPSW\n", tmpstr); return -1; } @@ -1425,7 +1425,7 @@ int build_manifest_get_identity_count(plist_t build_manifest) { return plist_array_get_size(build_identities_array); } -int ipsw_get_component_by_path(const char* ipsw, plist_t tss, const char* component, const char* path, char** data, uint32_t* size) { +int ipsw_get_component_by_path(const char* ipsw, plist_t tss, const char* component, const char* path, unsigned char** data, unsigned int* size) { img3_file* img3 = NULL; unsigned int component_size = 0; unsigned char* component_data = NULL; |