diff options
author | Nikias Bassen | 2013-12-01 21:41:49 +0100 |
---|---|---|
committer | Nikias Bassen | 2013-12-01 21:41:49 +0100 |
commit | 3892382a6af15cdc6238b68800b97416acf3558c (patch) | |
tree | e685cf81f3db669428f386bf0fd54bc122d3cee2 /src/idevicerestore.c | |
parent | bccb637758452b1850d303886b14de4d57a2be92 (diff) | |
download | idevicerestore-3892382a6af15cdc6238b68800b97416acf3558c.tar.gz idevicerestore-3892382a6af15cdc6238b68800b97416acf3558c.tar.bz2 |
main: silenced compiler warnings
Diffstat (limited to 'src/idevicerestore.c')
-rw-r--r-- | src/idevicerestore.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/idevicerestore.c b/src/idevicerestore.c index 30ea7f9..133141d 100644 --- a/src/idevicerestore.c +++ b/src/idevicerestore.c @@ -49,6 +49,7 @@ #define VERSION_XML "version.xml" +#ifndef IDEVICERESTORE_NOMAIN static struct option longopts[] = { { "ecid", required_argument, NULL, 'i' }, { "udid", required_argument, NULL, 'u' }, @@ -65,6 +66,7 @@ static struct option longopts[] = { { "cache-path", required_argument, NULL, 'C' }, { NULL, 0, NULL, 0 } }; +#endif void usage(int argc, char* argv[]) { char* name = strrchr(argv[0], '/'); @@ -231,7 +233,7 @@ int idevicerestore_start(struct idevicerestore_client_t* client) // make a local file name char* fnpart = strrchr(s_wtfurl, '/'); if (!fnpart) { - fnpart = "x12220000_5_Recovery.ipsw"; + fnpart = (char*)"x12220000_5_Recovery.ipsw"; } else { fnpart++; } @@ -1170,7 +1172,6 @@ int check_mode(struct idevicerestore_client_t* client) { const char* check_product_type(struct idevicerestore_client_t* client) { const char* product_type = NULL; - irecv_device_t res = NULL; switch (client->mode->index) { case MODE_RESTORE: |