diff options
author | Damien Lespiau <damien.lespiau@intel.com> | 2011-09-03 16:59:38 +0100 |
---|---|---|
committer | Damien Lespiau <damien.lespiau@intel.com> | 2011-09-05 12:13:47 +0100 |
commit | 177bb97617957384047ceca6606126867b6b6a96 (patch) | |
tree | 0b4694ff913be48947a90321a9a186e92bdf5877 | |
parent | c4831f3bb08b7359cb4d66e296ca2928ea5e80f6 (diff) | |
download | librest-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.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 ()); |