summaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2011-07-21 20:28:27 +0200
committerKay Sievers <kay.sievers@vrfy.org>2011-07-21 20:28:27 +0200
commitff4daf5a348278abed4dbf8afc3c4297b8cb9877 (patch)
treea9940950447c6ed8b4412d2bb4201df449d9fff1 /src/util.h
parentf68c5a70762da0cbb6228d05a87254a7c6c46ba6 (diff)
fix hwclock_apply_localtime_delta() to properly handle negative TZ offset
Localtime may be a negative number, i.e. GMT-7. Fix based on a patch from Kelly Anderson <kelly@silka.with-linux.com>.
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/util.h b/src/util.h
index b8bbd23e8c..7a4bf81c8d 100644
--- a/src/util.h
+++ b/src/util.h
@@ -434,8 +434,7 @@ int fchmod_umask(int fd, mode_t mode);
int conf_files_list(char ***strv, const char *suffix, const char *dir, ...);
int hwclock_is_localtime(void);
-
-int hwclock_apply_localtime_delta(void);
+int hwclock_apply_localtime_delta(int *min);
int hwclock_reset_localtime_delta(void);
int hwclock_get_time(struct tm *tm);
int hwclock_set_time(const struct tm *tm);