From d5904b6b45850cc731d45ec81ff2294d0afe26ad Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sat, 2 Jan 2010 22:29:16 +0000 Subject: David Ludlow's housekeeping and type-cleanup patch. All regression tests pass, --- netlib.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'netlib.c') diff --git a/netlib.c b/netlib.c index e5287a98..10d4df5b 100644 --- a/netlib.c +++ b/netlib.c @@ -18,8 +18,12 @@ #endif #endif /* S_SPLINT_S */ #ifndef S_SPLINT_S -#include -#include + #ifdef HAVE_NETDB_H + #include + #endif /* HAVE_NETDB_H */ + #ifdef HAVE_ARPA_INET_H + #include + #endif /* HAVE_ARPA_INET_H */ #endif /* S_SPLINT_S */ #include #include @@ -88,7 +92,7 @@ socket_t netlib_connectsock(const char *host, const char *service, const char *p #endif #ifdef TCP_NODELAY if (type == SOCK_STREAM) - setsockopt(s, IPPROTO_TCP, TCP_NODELAY, &one, sizeof one); + setsockopt(s, IPPROTO_TCP, TCP_NODELAY, (char *)&one, sizeof one); #endif return s; /*@ +type +mustfreefresh @*/ -- cgit v1.2.1