mirror of
https://github.com/tihmstar/futurerestore.git
synced 2025-01-02 19:25:31 +00:00
fixed casting errors
This commit is contained in:
parent
0de8b8c088
commit
2985ecfbad
|
@ -370,7 +370,7 @@ int futurerestore::doRestore(const char *ipsw, bool noerase){
|
|||
} else {
|
||||
strcpy(tmpf, client->ipsw);
|
||||
}
|
||||
char* p = strrchr((const char*)tmpf, '.');
|
||||
char* p = strrchr(tmpf, '.');
|
||||
if (p) {
|
||||
*p = '\0';
|
||||
}
|
||||
|
@ -562,7 +562,7 @@ char *futurerestore::getLatestManifest(){
|
|||
char **versions = getListOfiOSForDevice(_firmwareJson, _firmwareTokens, device, 0, &versionCnt);
|
||||
if (!versionCnt) reterror(-8, "[TSSC] failed finding latest iOS\n");
|
||||
char *bpos = NULL;
|
||||
while((bpos = strstr(versVals.version = strdup(versions[i++]),"[B]")) != 0){
|
||||
while((bpos = strstr((char*)(versVals.version = strdup(versions[i++])),"[B]")) != 0){
|
||||
free((char*)versVals.version);
|
||||
if (--versionCnt == 0) reterror(-9, "[TSSC] automatic iOS selection couldn't find non-beta iOS\n");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue