summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOndrej Holy <oholy@redhat.com>2019-09-16 17:04:34 +0200
committerOndrej Holy <oholy@redhat.com>2019-09-20 11:53:57 +0000
commitb93e5a4a20e5da6034fcd91859db4607c3658383 (patch)
tree836df18b0a30c97ff3cda4689abdd014f05acd66
parent356302839b1fcf42c9071da1f21a7e9d6dc8fc17 (diff)
downloadgvfs-b93e5a4a20e5da6034fcd91859db4607c3658383.tar.gz
http: Remove usage of deprecated GTimeVal
GTimeVal is deprecated. Let's remove it in order to prevent the deprecation warnings.
-rw-r--r--daemon/gvfsbackendhttp.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/daemon/gvfsbackendhttp.c b/daemon/gvfsbackendhttp.c
index 81ebe27e..aca1525d 100644
--- a/daemon/gvfsbackendhttp.c
+++ b/daemon/gvfsbackendhttp.c
@@ -583,13 +583,12 @@ 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));
+ g_file_info_set_attribute_uint32 (info, G_FILE_ATTRIBUTE_TIME_MODIFIED_USEC, 0);
soup_date_free (sd);
}
}