chiark / gitweb /
errno is positive
[elogind.git] / src / shared / hwclock.c
index 488c30e93f6c8ce04dfb2da451b4c60022b0c9c4..55b0fa8a0f1c855ade2f9ee26bbc141aaf1f6cf2 100644 (file)
@@ -190,7 +190,7 @@ int hwclock_is_localtime(void) {
                 truncate_nl(line);
                 local = streq(line, "LOCAL");
 
-        } else if (errno != -ENOENT)
+        } else if (errno != ENOENT)
                 return -errno;
 
         return local;