diff options
author | Philip Chimento <philip@endlessm.com> | 2015-12-04 17:46:35 -0800 |
---|---|---|
committer | Philip Chimento <philip@endlessm.com> | 2015-12-04 17:46:35 -0800 |
commit | 702a560cc50ec769ff84c477ca9a9d6dff99880a (patch) | |
tree | 183b3c48d14475f7106d71cc85257ddf0b30abd3 /test/endless/run-tests.c | |
parent | bd91417600e7958280b30eab0ad72a97458dbf8c (diff) |
Use portable 64-bit printf specifier
Use G_GINT64_FORMAT which GLib ensures is portable, instead of PRIi64
which Clang apparently doesn't like.
[endlessm/eos-sdk#3782]
Diffstat (limited to 'test/endless/run-tests.c')
-rw-r--r-- | test/endless/run-tests.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/endless/run-tests.c b/test/endless/run-tests.c index 09b466a..232f51e 100644 --- a/test/endless/run-tests.c +++ b/test/endless/run-tests.c @@ -1,6 +1,5 @@ /* Copyright 2013 Endless Mobile, Inc. */ -#include <inttypes.h> /* For PRIi64 */ #include <unistd.h> /* For getpid() */ #include <glib-object.h> #include <glib.h> @@ -15,7 +14,7 @@ gchar * generate_unique_app_id (void) { - return g_strdup_printf ("%s%" PRIi64 "%ld", + return g_strdup_printf ("%s%" G_GINT64_FORMAT "%ld", APPLICATION_TEST_ID_BASE, g_get_real_time (), (long) getpid ()); |