summaryrefslogtreecommitdiff
path: root/netlib.c
diff options
context:
space:
mode:
authorChris Kuethe <chris.kuethe@gmail.com>2008-08-18 07:10:40 +0000
committerChris Kuethe <chris.kuethe@gmail.com>2008-08-18 07:10:40 +0000
commitae926b8165e00af9b12e309bfb1a4b041f6c2388 (patch)
treef26fd6e8eccf146ccb71a01bd2e925b3251cd017 /netlib.c
parent643be0dd49dcd201d17236d64706bc0e83f39008 (diff)
downloadgpsd-ae926b8165e00af9b12e309bfb1a4b041f6c2388.tar.gz
C syntax fix...
...work around declarations after statements by putting this inside its own scope. pacifies gcc2...
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 7d86dc9e..159d17be 100644
--- a/netlib.c
+++ b/netlib.c
@@ -70,10 +70,12 @@ int netlib_connectsock(const char *host, const char *service, const char *protoc
}
#ifdef IPTOS_LOWDELAY
+ {
int opt = IPTOS_LOWDELAY;
/*@ -unrecog @*/
(void)setsockopt(s, IPPROTO_IP, IP_TOS, &opt, sizeof opt);
/*@ +unrecog @*/
+ }
#endif
#ifdef TCP_NODELAY
if (type == SOCK_STREAM)