diff options
author | Joshua Hill | 2010-06-05 11:17:05 +0800 |
---|---|---|
committer | rcg4u | 2010-06-09 17:17:28 +0800 |
commit | 7f98089a5e6663be50521063cf7171ab1bbc9fa2 (patch) | |
tree | 73a8cf475e0fb13ba8957fb3a696b7340f5cba9c /src/ipsw.c | |
parent | 3761295840ba6c7672aebcb2b084a2dbf7099735 (diff) | |
download | idevicerestore-7f98089a5e6663be50521063cf7171ab1bbc9fa2.tar.gz idevicerestore-7f98089a5e6663be50521063cf7171ab1bbc9fa2.tar.bz2 |
Even more major cleanups and refactoring, this branch is still broken but starting to mature really well
Diffstat (limited to 'src/ipsw.c')
-rw-r--r-- | src/ipsw.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -20,6 +20,7 @@ */ #include <zip.h> +#include <stdio.h> #include <stdlib.h> #include <string.h> @@ -119,7 +120,7 @@ int ipsw_extract_to_file(const char* ipsw, const char* infile, const char* outfi return 0; } -int ipsw_extract_to_memory(const char* ipsw, const char* infile, char** pbuffer, int* psize) { +int ipsw_extract_to_memory(const char* ipsw, const char* infile, char** pbuffer, uint32_t* psize) { ipsw_archive* archive = ipsw_open(ipsw); if (archive == NULL || archive->zip == NULL) { error("ERROR: Invalid archive\n"); |