diff options
author | Michael Tatarinov <kukabu@gmail.com> | 2011-02-11 11:54:43 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-02-11 11:54:43 -0500 |
commit | 049812231a2d6a211cfb0ffb61b60e694a3be0f9 (patch) | |
tree | a5bc3c9cc540355b7d22b9fa788564d086b7057c /gpsmon.c | |
parent | fe60372412881cf82d7cb5b25843d23223e7896d (diff) | |
download | gpsd-049812231a2d6a211cfb0ffb61b60e694a3be0f9.tar.gz |
Cosmetic fixes for the SiRF monitor.
Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
Diffstat (limited to 'gpsmon.c')
-rw-r--r-- | gpsmon.c | 17 |
1 files changed, 1 insertions, 16 deletions
@@ -54,7 +54,6 @@ extern struct monitor_object_t oncore_mmt, tnt_mmt; /* These are public */ struct gps_device_t session; WINDOW *devicewin; -int gmt_offset; /* These are private */ static struct gps_context_t context; @@ -303,19 +302,6 @@ static bool monitor_raw_send( /*@in@*/ unsigned char *buf, size_t len) * *****************************************************************************/ -static long tzoffset(void) -{ - time_t now = time(NULL); - struct tm tm; - long res = 0; - - tzset(); - res = timezone; - if (localtime_r(&now, &tm)->tm_isdst) - res -= 3600; - return res; -} - void monitor_complain(const char *fmt, ...) { va_list ap; @@ -411,9 +397,8 @@ int main(int argc, char **argv) char line[80], *explanation; int bailout = 0; - gmt_offset = (int)tzoffset(); /*@ -observertrans @*/ - (void)putenv("TZ=GMT"); // for ctime() + (void)putenv("TZ=UTC"); // for ctime() /*@ +observertrans @*/ /*@ -branchstate @*/ while ((option = getopt(argc, argv, "D:F:LVhl:")) != -1) { |