From 179bd812736f4b5ffea66a0e6ea42eb00a84a0c8 Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Wed, 21 May 2014 15:31:53 +0200 Subject: Silence compiler warning about format strings using PRIu64 --- common/utils.c | 2 +- dev/ideviceheartbeat.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/common/utils.c b/common/utils.c index aa0332d..80f7060 100644 --- a/common/utils.c +++ b/common/utils.c @@ -322,7 +322,7 @@ static void plist_node_print_to_stream(plist_t node, int* indent_level, FILE* st case PLIST_UINT: plist_get_uint_val(node, &u); - fprintf(stream, "%"PRIu64"\n", (long long)u); + fprintf(stream, "%"PRIu64"\n", u); break; case PLIST_REAL: diff --git a/dev/ideviceheartbeat.c b/dev/ideviceheartbeat.c index fe2cdf3..c92ff90 100644 --- a/dev/ideviceheartbeat.c +++ b/dev/ideviceheartbeat.c @@ -21,6 +21,7 @@ #include #include +#include #include #include @@ -129,7 +130,7 @@ int main(int argc, char *argv[]) plist_get_uint_val(node, &interval); } - printf("> marco: supports_sleepy_time %d, interval %llu\n", b, interval); + printf("> marco: supports_sleepy_time %d, interval %"PRIu64"\n", b, interval); plist_free(message); message = NULL; -- cgit v1.1-32-gdbae