[msitools: 1/16] wixl: fix TimeVal deprecation



commit 04ebb8cc0b6fb8ec78a7b56899363da11f30feb1
Author: Marc-André Lureau <marcandre lureau redhat com>
Date:   Sat Mar 28 01:15:31 2020 +0100

    wixl: fix TimeVal deprecation
    
    Signed-off-by: Marc-André Lureau <marcandre lureau redhat com>

 tools/wixl/util.vala | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/tools/wixl/util.vala b/tools/wixl/util.vala
index 3842904..491123a 100644
--- a/tools/wixl/util.vala
+++ b/tools/wixl/util.vala
@@ -52,13 +52,11 @@ namespace Wixl {
         return uuid;
     }
 
-    public long now () {
-        var tv = TimeVal ();
-        tv.get_current_time ();
-        return tv.tv_sec;
+    public int64 now () {
+        return get_real_time() / TimeSpan.SECOND;
     }
 
-    public uint64 time_to_filetime (long t) {
+    public uint64 time_to_filetime (int64 t) {
         return (t + 134774ULL * 86400ULL) * 10000000ULL;
     }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]