summaryrefslogtreecommitdiff
path: root/netlib.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-12-31 16:44:55 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-12-31 16:44:55 +0000
commitefd6ba7fc7d91530043078980b0103f3c1e3fe7a (patch)
treea5692832f726a43a807934d0624ecdbcab817183 /netlib.c
parent083b9060f593a8b77df73071486860a407f19143 (diff)
downloadgpsd-efd6ba7fc7d91530043078980b0103f3c1e3fe7a.tar.gz
Declare socket-valued ints as socket_t.
Diffstat (limited to 'netlib.c')
-rw-r--r--netlib.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/netlib.c b/netlib.c
index be5c765a..e5287a98 100644
--- a/netlib.c
+++ b/netlib.c
@@ -34,13 +34,14 @@
#define INADDR_NONE ((in_addr_t)-1)
#endif
-int netlib_connectsock(const char *host, const char *service, const char *protocol)
+socket_t netlib_connectsock(const char *host, const char *service, const char *protocol)
{
struct hostent *phe;
struct servent *pse;
struct protoent *ppe;
struct sockaddr_in sin;
- int s, type, proto, one = 1;
+ int type, proto, one = 1;
+ socket_t s;
memset((char *) &sin, 0, sizeof(sin));
/*@ -type -mustfreefresh @*/