summaryrefslogtreecommitdiffstats
path: root/src/idevicerestore.c
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2010-07-09 16:47:42 +0200
committerGravatar Martin Szulecki2010-07-09 16:47:42 +0200
commit77576d1848d6be1d73f0f860d6a4f350536f75bd (patch)
treee4332a2863b65dcd737c8adefc7a495b31697d10 /src/idevicerestore.c
parent515f26d28667b4790a4c1db1126f68b015ed1bce (diff)
downloadidevicerestore-77576d1848d6be1d73f0f860d6a4f350536f75bd.tar.gz
idevicerestore-77576d1848d6be1d73f0f860d6a4f350536f75bd.tar.bz2
Refactor filesystem extraction
Diffstat (limited to 'src/idevicerestore.c')
-rw-r--r--src/idevicerestore.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/idevicerestore.c b/src/idevicerestore.c
index 6b3dee4..9b0b98e 100644
--- a/src/idevicerestore.c
+++ b/src/idevicerestore.c
@@ -212,7 +212,7 @@ int main(int argc, char* argv[]) {
// Extract filesystem from IPSW and return its name
char* filesystem = NULL;
- if (extract_filesystem(client, client->ipsw, build_identity, &filesystem) < 0) {
+ if (ipsw_extract_filesystem(client->ipsw, buildidentity, &filesystem) < 0) {
error("ERROR: Unable to extract filesystem from IPSW\n");
if (client->tss)
plist_free(client->tss);
@@ -541,7 +541,7 @@ int get_build_count(plist_t buildmanifest) {
return plist_array_get_size(build_identities_array);
}
-int extract_filesystem(struct idevicerestore_client_t* client, const char* ipsw, plist_t build_identity, char** filesystem) {
+int ipsw_extract_filesystem(const char* ipsw, plist_t build_identity, char** filesystem) {
char* filename = NULL;
if (build_identity_get_component_path(build_identity, "OS", &filename) < 0) {