diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2005-06-07 21:09:20 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2005-06-07 21:09:20 +0000 |
commit | 1efc70b98907350347785a6f5e21f9179cbc075b (patch) | |
tree | cdd3481e32311862c67f8a96c009b188b4a13a32 /sirfmon.c | |
parent | 565f8afb47c2a40f605fcb612f7362c766582a86 (diff) | |
download | gpsd-1efc70b98907350347785a6f5e21f9179cbc075b.tar.gz |
75 splint warnings with all -unrecog directives removed.
Diffstat (limited to 'sirfmon.c')
-rw-r--r-- | sirfmon.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -45,6 +45,10 @@ #include <sys/select.h> #endif +#ifdef S_SPLINT_S +extern struct tm *localtime_r(const time_t *,/*@out@*/struct tm *tp)/*@modifies tp@*/; +#endif /* S_SPLINT_S */ + extern int netlib_connectsock(const char *, const char *, const char *); #define BUFLEN 2048 @@ -842,7 +846,6 @@ static long tzoffset(void) struct tm tm; long res = 0; - /*@ -unrecog **/ tzset(); #ifdef HAVE_TIMEZONE res = timezone; @@ -850,13 +853,12 @@ static long tzoffset(void) res = localtime_r(&now, &tm)->tm_gmtoff; #endif #ifdef HAVE_DAYLIGHT - if (daylight && localtime_r(&now, &tm)->tm_isdst) + if (daylight != 0 && localtime_r(&now, &tm)->tm_isdst != 0) res -= 3600; #else if (localtime_r(&now, &tm)->tm_isdst) res -= 3600; #endif - /*@ +unrecog **/ return res; } |