aboutsummaryrefslogtreecommitdiff
path: root/util-linux/rtcwake.c
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux/rtcwake.c')
-rw-r--r--util-linux/rtcwake.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util-linux/rtcwake.c b/util-linux/rtcwake.c
index 53d9384db..8aee0cfcb 100644
--- a/util-linux/rtcwake.c
+++ b/util-linux/rtcwake.c
@@ -66,7 +66,7 @@ static NOINLINE bool may_wakeup(const char *rtcname)
66 return false; 66 return false;
67 67
68 /* wakeup events could be disabled or not supported */ 68 /* wakeup events could be disabled or not supported */
69 return strncmp(buf, "enabled\n", 8) == 0; 69 return is_prefixed_with(buf, "enabled\n") != NULL;
70} 70}
71 71
72static NOINLINE void setup_alarm(int fd, time_t *wakeup, time_t rtc_time) 72static NOINLINE void setup_alarm(int fd, time_t *wakeup, time_t rtc_time)