From d85f12afd6fd31963ddc67748264bd23116a11bd Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Sat, 28 Jul 2012 18:07:15 +0200 Subject: main: use client flag instead of local variable for --shsh option --- src/common.h | 1 + src/idevicerestore.c | 6 ++---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/common.h b/src/common.h index 0188cdc..bff5f1e 100644 --- a/src/common.h +++ b/src/common.h @@ -47,6 +47,7 @@ extern "C" { #define FLAG_EXCLUDE 16 #define FLAG_PWN 32 #define FLAG_NOACTION 64 +#define FLAG_SHSHONLY 128 struct dfu_client_t; struct normal_client_t; 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; -- cgit v1.1-32-gdbae