summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Toso <me@victortoso.com>2020-02-17 09:56:18 +0100
committerVictor Toso <me@victortoso.com>2020-02-21 11:36:41 +0100
commit9c411dbbc58a4dee087644c9986f228504dda338 (patch)
treebb7e4bb76356956610e3563b57247ffb993a81f4
parent4b71c46ac0e90150d5e5c1e7ef3e66a77c220231 (diff)
downloadgrilo-9c411dbbc58a4dee087644c9986f228504dda338.tar.gz
test-ui: Drop usage of deprecated GTimeVal
-rw-r--r--tools/grilo-test-ui/flickr-oauth.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/tools/grilo-test-ui/flickr-oauth.c b/tools/grilo-test-ui/flickr-oauth.c
index 8e847c5..29463ee 100644
--- a/tools/grilo-test-ui/flickr-oauth.c
+++ b/tools/grilo-test-ui/flickr-oauth.c
@@ -268,10 +268,7 @@ flickroauth_authorization_url (const gchar *oauth_token, const gchar *perms)
inline static gchar *
get_timestamp (void)
{
- GTimeVal tm;
- g_get_current_time (&tm);
-
- return g_strdup_printf ("%lu", tm.tv_sec);
+ return g_strdup_printf ("%lu", g_get_real_time() / G_USEC_PER_SEC);
}
static gchar