diff options
| author | 2020-04-20 23:59:44 +0200 | |
|---|---|---|
| committer | 2020-04-20 23:59:44 +0200 | |
| commit | b0ca976470dad8d2280168f778034bfbb5c15796 (patch) | |
| tree | 1e93c35f241f5bc0d6dbbc152fd42a6485dce554 /src/ipsw.c | |
| parent | 654201734cc57b91fcc1c9dc653ce573fc9a5dcb (diff) | |
| download | idevicerestore-b0ca976470dad8d2280168f778034bfbb5c15796.tar.gz idevicerestore-b0ca976470dad8d2280168f778034bfbb5c15796.tar.bz2 | |
Use uint64_t and appropriate standard PRI* format specifiers everywhere
Diffstat (limited to 'src/ipsw.c')
| -rw-r--r-- | src/ipsw.c | 4 | 
1 files changed, 2 insertions, 2 deletions
| @@ -576,7 +576,7 @@ int ipsw_get_latest_fw(plist_t version_data, const char* product, char** fwurl,  		return -1;  	}  	char* key = NULL; -	long long unsigned int major = 0; +	uint64_t major = 0;  	plist_t val = NULL;  	do {  		plist_dict_next_item(n1, iter, &key, &val); @@ -598,7 +598,7 @@ int ipsw_get_latest_fw(plist_t version_data, const char* product, char** fwurl,  	}  	char majstr[32]; // should be enough for a uint64_t value -	sprintf(majstr, FMT_qu, (long long unsigned int)major); +	sprintf(majstr, "%"PRIu64, (uint64_t)major);  	n1 = plist_access_path(version_data, 7, "MobileDeviceSoftwareVersionsByVersion", majstr, "MobileDeviceSoftwareVersions", product, "Unknown", "Universal", "Restore");  	if (!n1) {  		error("%s: ERROR: Can't get Unknown/Universal/Restore node?!\n", __func__); | 
