summaryrefslogtreecommitdiff
path: root/netlib.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2007-06-01 19:23:17 +0000
committerEric S. Raymond <esr@thyrsus.com>2007-06-01 19:23:17 +0000
commit434aa4709368135fa7ef330c6f968c3ab59408c5 (patch)
treef9897b18ea769882a788d08d376a3a3e0a28153b /netlib.c
parent935c33d4c9469fa406925635b2084f0b44673a1d (diff)
downloadgpsd-434aa4709368135fa7ef330c6f968c3ab59408c5.tar.gz
Change return ttype of gpsd_write to be what the Garmin driver was expecting;
it actually makes more sense this way. (Fixes what may have been a subtle bug.)
Diffstat (limited to 'netlib.c')
-rw-r--r--netlib.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/netlib.c b/netlib.c
index e0ba59a0..1b165256 100644
--- a/netlib.c
+++ b/netlib.c
@@ -65,7 +65,9 @@ int netlib_connectsock(const char *host, const char *service, const char *protoc
#ifdef IPTOS_LOWDELAY
opt = IPTOS_LOWDELAY;
+ /*@ -unrecog @*/
(void)setsockopt(s, IPPROTO_IP, IP_TOS, &opt, sizeof opt);
+ /*@ +unrecog @*/
#endif
#ifdef TCP_NODELAY
if (type == SOCK_STREAM)