chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
errno is positive
[elogind.git]
/
src
/
shared
/
hwclock.c
diff --git
a/src/shared/hwclock.c
b/src/shared/hwclock.c
index f9adf0369ea71cc38f23315b43b57d8b66a2dc08..55b0fa8a0f1c855ade2f9ee26bbc141aaf1f6cf2 100644
(file)
--- a/
src/shared/hwclock.c
+++ b/
src/shared/hwclock.c
@@
-41,6
+41,7
@@
#include "log.h"
#include "strv.h"
#include "hwclock.h"
#include "log.h"
#include "strv.h"
#include "hwclock.h"
+#include "fileio.h"
static int rtc_open(int flags) {
int fd;
static int rtc_open(int flags) {
int fd;
@@
-189,7
+190,7
@@
int hwclock_is_localtime(void) {
truncate_nl(line);
local = streq(line, "LOCAL");
truncate_nl(line);
local = streq(line, "LOCAL");
- } else if (errno !=
-
ENOENT)
+ } else if (errno != ENOENT)
return -errno;
return local;
return -errno;
return local;