summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Lespiau <damien.lespiau@intel.com>2011-09-03 16:59:38 +0100
committerDamien Lespiau <damien.lespiau@intel.com>2011-09-05 12:13:47 +0100
commit177bb97617957384047ceca6606126867b6b6a96 (patch)
tree0b4694ff913be48947a90321a9a186e92bdf5877
parentc4831f3bb08b7359cb4d66e296ca2928ea5e80f6 (diff)
downloadlibrest-177bb97617957384047ceca6606126867b6b6a96.tar.gz
oauth-proxy: Fix format string warning
gcc complains about %lli here. Glib happens to define convinience macros around gint64, let's use them.
-rw-r--r--rest/oauth-proxy-call.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rest/oauth-proxy-call.c b/rest/oauth-proxy-call.c
index b667b20..d8cff95 100644
--- a/rest/oauth-proxy-call.c
+++ b/rest/oauth-proxy-call.c
@@ -250,7 +250,7 @@ _prepare (RestProxyCall *call, GError **error)
g_hash_table_insert (oauth_params, g_strdup ("oauth_version"), g_strdup ("1.0"));
- s = g_strdup_printf ("%lli", (long long int) time (NULL));
+ s = g_strdup_printf ("%"G_GINT64_FORMAT , (gint64) time (NULL));
g_hash_table_insert (oauth_params, g_strdup ("oauth_timestamp"), s);
s = g_strdup_printf ("%u", g_random_int ());