summaryrefslogtreecommitdiffstats
path: root/src/ipsw.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2020-04-20 23:59:44 +0200
committerGravatar Nikias Bassen2020-04-20 23:59:44 +0200
commitb0ca976470dad8d2280168f778034bfbb5c15796 (patch)
tree1e93c35f241f5bc0d6dbbc152fd42a6485dce554 /src/ipsw.c
parent654201734cc57b91fcc1c9dc653ce573fc9a5dcb (diff)
downloadidevicerestore-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ipsw.c b/src/ipsw.c
index e56afa2..c8659e3 100644
--- a/src/ipsw.c
+++ b/src/ipsw.c
@@ -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__);