chiark / gitweb /
udev: use usec_t and now()
[elogind.git] / src / libudev / libudev-hwdb.c
index 8fe24a432001b7d2ed91d1120c27de867dbe0aee..e72123a3af4ed2cea3ca458b4b036ef8bf07dc39 100644 (file)
@@ -356,7 +356,7 @@ bool udev_hwdb_validate(struct udev_hwdb *hwdb) {
                 return false;
         if (fstat(fileno(hwdb->f), &st) < 0)
                 return true;
-        if (ts_usec(&hwdb->st.st_mtim) != ts_usec(&st.st_mtim))
+        if (timespec_load(&hwdb->st.st_mtim) != timespec_load(&st.st_mtim))
                 return true;
         return false;
 }