diff options
Diffstat (limited to 'util-linux/hwclock.c')
-rw-r--r-- | util-linux/hwclock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util-linux/hwclock.c b/util-linux/hwclock.c index b581d2604..f226535fa 100644 --- a/util-linux/hwclock.c +++ b/util-linux/hwclock.c | |||
@@ -25,7 +25,7 @@ static time_t read_rtc(int utc) | |||
25 | time_t ret; | 25 | time_t ret; |
26 | int fd; | 26 | int fd; |
27 | 27 | ||
28 | fd = rtc_xopen(rtcname, O_RDONLY); | 28 | fd = rtc_xopen(&rtcname, O_RDONLY); |
29 | ret = rtc_read_time(fd, utc); | 29 | ret = rtc_read_time(fd, utc); |
30 | close(fd); | 30 | close(fd); |
31 | 31 | ||
@@ -35,7 +35,7 @@ static time_t read_rtc(int utc) | |||
35 | static void write_rtc(time_t t, int utc) | 35 | static void write_rtc(time_t t, int utc) |
36 | { | 36 | { |
37 | struct tm tm; | 37 | struct tm tm; |
38 | int rtc = rtc_xopen(rtcname, O_WRONLY); | 38 | int rtc = rtc_xopen(&rtcname, O_WRONLY); |
39 | 39 | ||
40 | tm = *(utc ? gmtime(&t) : localtime(&t)); | 40 | tm = *(utc ? gmtime(&t) : localtime(&t)); |
41 | tm.tm_isdst = 0; | 41 | tm.tm_isdst = 0; |