[gvfs/wip/oholy/gtimeval-gdatetime: 4/10] http: Remove usage of deprecated GTimeVal
- From: Ondrej Holy <oholy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs/wip/oholy/gtimeval-gdatetime: 4/10] http: Remove usage of deprecated GTimeVal
- Date: Wed, 18 Sep 2019 13:03:18 +0000 (UTC)
commit 7938fc777c7a631c77713a315fa8d693ebfbdbb5
Author: Ondrej Holy <oholy redhat com>
Date: Mon Sep 16 17:04:34 2019 +0200
http: Remove usage of deprecated GTimeVal
GTimeVal is deprecated. Let's remove it in order to prevent the
deprecation warnings.
daemon/gvfsbackendhttp.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/daemon/gvfsbackendhttp.c b/daemon/gvfsbackendhttp.c
index 81ebe27e..9862fea2 100644
--- a/daemon/gvfsbackendhttp.c
+++ b/daemon/gvfsbackendhttp.c
@@ -583,13 +583,11 @@ file_info_from_message (SoupMessage *msg,
if (text)
{
SoupDate *sd;
- GTimeVal tv;
sd = soup_date_new_from_string(text);
if (sd)
{
- soup_date_to_timeval (sd, &tv);
- g_file_info_set_modification_time (info, &tv);
+ g_file_info_set_attribute_uint64 (info, G_FILE_ATTRIBUTE_TIME_MODIFIED, soup_date_to_time_t (sd));
soup_date_free (sd);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]