diff options
| author | 2014-05-21 15:31:53 +0200 | |
|---|---|---|
| committer | 2014-05-21 15:31:53 +0200 | |
| commit | 179bd812736f4b5ffea66a0e6ea42eb00a84a0c8 (patch) | |
| tree | 5fc5569c863c0453030d3cdedb451d5f1ef823fc | |
| parent | df51f6cfb7f73b159e7c7d704b9e59ef09f94b3e (diff) | |
| download | libimobiledevice-179bd812736f4b5ffea66a0e6ea42eb00a84a0c8.tar.gz libimobiledevice-179bd812736f4b5ffea66a0e6ea42eb00a84a0c8.tar.bz2 | |
Silence compiler warning about format strings using PRIu64
| -rw-r--r-- | common/utils.c | 2 | ||||
| -rw-r--r-- | 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 | |||
| 322 | 322 | ||
| 323 | case PLIST_UINT: | 323 | case PLIST_UINT: |
| 324 | plist_get_uint_val(node, &u); | 324 | plist_get_uint_val(node, &u); |
| 325 | fprintf(stream, "%"PRIu64"\n", (long long)u); | 325 | fprintf(stream, "%"PRIu64"\n", u); |
| 326 | break; | 326 | break; |
| 327 | 327 | ||
| 328 | case PLIST_REAL: | 328 | 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 @@ | |||
| 21 | 21 | ||
| 22 | #include <stdio.h> | 22 | #include <stdio.h> |
| 23 | #include <string.h> | 23 | #include <string.h> |
| 24 | #include <inttypes.h> | ||
| 24 | #include <signal.h> | 25 | #include <signal.h> |
| 25 | #include <stdlib.h> | 26 | #include <stdlib.h> |
| 26 | 27 | ||
| @@ -129,7 +130,7 @@ int main(int argc, char *argv[]) | |||
| 129 | plist_get_uint_val(node, &interval); | 130 | plist_get_uint_val(node, &interval); |
| 130 | } | 131 | } |
| 131 | 132 | ||
| 132 | printf("> marco: supports_sleepy_time %d, interval %llu\n", b, interval); | 133 | printf("> marco: supports_sleepy_time %d, interval %"PRIu64"\n", b, interval); |
| 133 | 134 | ||
| 134 | plist_free(message); | 135 | plist_free(message); |
| 135 | message = NULL; | 136 | message = NULL; |
