diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2011-07-21 20:28:27 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2011-07-21 20:28:27 +0200 |
commit | ff4daf5a348278abed4dbf8afc3c4297b8cb9877 (patch) | |
tree | a9940950447c6ed8b4412d2bb4201df449d9fff1 /src/util.h | |
parent | f68c5a70762da0cbb6228d05a87254a7c6c46ba6 (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.h | 3 |
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); |