[librest] oauth-proxy: Fix format string warning



commit 177bb97617957384047ceca6606126867b6b6a96
Author: Damien Lespiau <damien lespiau intel com>
Date:   Sat Sep 3 16:59:38 2011 +0100

    oauth-proxy: Fix format string warning
    
    gcc complains about %lli here. Glib happens to define convinience macros
    around gint64, let's use them.

 rest/oauth-proxy-call.c |    2 +-
 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 ());



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]