summaryrefslogtreecommitdiffstats
path: root/src/common.h
diff options
context:
space:
mode:
authorGravatar Rosen Penev2020-04-12 21:20:03 -0700
committerGravatar Rosen Penev2020-04-12 21:25:35 -0700
commit10b85ce085e4f2c0d695ee6c92fc26a7c9f456d7 (patch)
treee18af55ed4722a98c9c14c0f150238e6448fbf03 /src/common.h
parent05f543df0147c61cb5900586512c882d276d0ed6 (diff)
downloadidevicerestore-10b85ce085e4f2c0d695ee6c92fc26a7c9f456d7.tar.gz
idevicerestore-10b85ce085e4f2c0d695ee6c92fc26a7c9f456d7.tar.bz2
fix newly introduced format errors under 64-bit
uint64_t should be used. Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common.h b/src/common.h
index af46737..0a6e48c 100644
--- a/src/common.h
+++ b/src/common.h
@@ -32,6 +32,7 @@ extern "C" {
#include <config.h>
#endif
+#include <inttypes.h>
#include <unistd.h>
#include <plist/plist.h>
@@ -146,7 +147,7 @@ char *generate_guid(void);
#include <sys/stat.h>
#define __mkdir(path, mode) mkdir(path, mode)
#define FMT_qu "%qu"
-#define FMT_016llx "%016llx"
+#define FMT_016llx "%016" PRIx64
#define __usleep(x) usleep(x)
#endif