summaryrefslogtreecommitdiffstats
path: root/src/idevicerestore.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2012-07-28 18:07:15 +0200
committerGravatar Nikias Bassen2012-07-28 18:07:15 +0200
commitd85f12afd6fd31963ddc67748264bd23116a11bd (patch)
tree71a543c3ae2743ef0528d40e9d711d22ddd7e16d /src/idevicerestore.c
parent137672c4d1e9c8aff4a430dfb85929115b7d052e (diff)
downloadidevicerestore-d85f12afd6fd31963ddc67748264bd23116a11bd.tar.gz
idevicerestore-d85f12afd6fd31963ddc67748264bd23116a11bd.tar.bz2
main: use client flag instead of local variable for --shsh option
Diffstat (limited to 'src/idevicerestore.c')
-rw-r--r--src/idevicerestore.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/idevicerestore.c b/src/idevicerestore.c
index 0397ec4..a1875d4 100644
--- a/src/idevicerestore.c
+++ b/src/idevicerestore.c
@@ -159,9 +159,7 @@ int main(int argc, char* argv[]) {
char* ipsw = NULL;
char* udid = NULL;
int tss_enabled = 0;
- int shsh_only = 0;
int latest = 0;
- char* shsh_dir = NULL;
int result = 0;
// create an instance of our context
@@ -222,7 +220,7 @@ int main(int argc, char* argv[]) {
break;
case 't':
- shsh_only = 1;
+ client->flags |= FLAG_SHSHONLY;
break;
case 'p':
@@ -621,7 +619,7 @@ int main(int argc, char* argv[]) {
}
}
- if (shsh_only) {
+ if (client->flags & FLAG_SHSHONLY) {
if (!tss_enabled) {
info("This device does not require a TSS record");
return 0;