fixed casting errors

This commit is contained in:
tihmstar 2016-12-31 16:02:18 +01:00
parent 0de8b8c088
commit 2985ecfbad

View file

@ -370,7 +370,7 @@ int futurerestore::doRestore(const char *ipsw, bool noerase){
} else { } else {
strcpy(tmpf, client->ipsw); strcpy(tmpf, client->ipsw);
} }
char* p = strrchr((const char*)tmpf, '.'); char* p = strrchr(tmpf, '.');
if (p) { if (p) {
*p = '\0'; *p = '\0';
} }
@ -562,7 +562,7 @@ char *futurerestore::getLatestManifest(){
char **versions = getListOfiOSForDevice(_firmwareJson, _firmwareTokens, device, 0, &versionCnt); char **versions = getListOfiOSForDevice(_firmwareJson, _firmwareTokens, device, 0, &versionCnt);
if (!versionCnt) reterror(-8, "[TSSC] failed finding latest iOS\n"); if (!versionCnt) reterror(-8, "[TSSC] failed finding latest iOS\n");
char *bpos = NULL; 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); free((char*)versVals.version);
if (--versionCnt == 0) reterror(-9, "[TSSC] automatic iOS selection couldn't find non-beta iOS\n"); if (--versionCnt == 0) reterror(-9, "[TSSC] automatic iOS selection couldn't find non-beta iOS\n");
} }