From 434aa4709368135fa7ef330c6f968c3ab59408c5 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Fri, 1 Jun 2007 19:23:17 +0000 Subject: 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.) --- netlib.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'netlib.c') 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) -- cgit v1.2.1