diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2009-12-31 16:44:55 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2009-12-31 16:44:55 +0000 |
commit | efd6ba7fc7d91530043078980b0103f3c1e3fe7a (patch) | |
tree | a5692832f726a43a807934d0624ecdbcab817183 /netlib.c | |
parent | 083b9060f593a8b77df73071486860a407f19143 (diff) | |
download | gpsd-efd6ba7fc7d91530043078980b0103f3c1e3fe7a.tar.gz |
Declare socket-valued ints as socket_t.
Diffstat (limited to 'netlib.c')
-rw-r--r-- | netlib.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 @*/ |