summaryrefslogtreecommitdiffstats
path: root/hwclock
diff options
context:
space:
mode:
authorKarel Zak2006-12-07 00:26:12 +0100
committerKarel Zak2006-12-07 00:26:12 +0100
commitdf1dddf9ffcfc1e291de809c0e8b9060bfea02ee (patch)
tree03b712bddec33d05754bf59d31a75d7e2022761e /hwclock
parentImported from util-linux-2.11y tarball. (diff)
downloadkernel-qcow2-util-linux-df1dddf9ffcfc1e291de809c0e8b9060bfea02ee.tar.gz
kernel-qcow2-util-linux-df1dddf9ffcfc1e291de809c0e8b9060bfea02ee.tar.xz
kernel-qcow2-util-linux-df1dddf9ffcfc1e291de809c0e8b9060bfea02ee.zip
Imported from util-linux-2.12 tarball.
Diffstat (limited to 'hwclock')
-rw-r--r--hwclock/rtc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hwclock/rtc.c b/hwclock/rtc.c
index b13a46a87..bc9733b80 100644
--- a/hwclock/rtc.c
+++ b/hwclock/rtc.c
@@ -332,7 +332,7 @@ static struct clock_ops rtc = {
struct clock_ops *
probe_for_rtc_clock(){
int rtc_fd = open_rtc();
- if (rtc_fd > 0) {
+ if (rtc_fd >= 0) {
close(rtc_fd);
return &rtc;
}