[grilo] test-ui: Drop usage of deprecated GTimeVal
- From: Victor Toso <victortoso src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo] test-ui: Drop usage of deprecated GTimeVal
- Date: Fri, 21 Feb 2020 10:45:21 +0000 (UTC)
commit 9c411dbbc58a4dee087644c9986f228504dda338
Author: Victor Toso <me victortoso com>
Date: Mon Feb 17 09:56:18 2020 +0100
test-ui: Drop usage of deprecated GTimeVal
tools/grilo-test-ui/flickr-oauth.c | 5 +----
1 file changed, 1 insertion(+), 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]