diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2012-09-22 08:59:54 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2012-09-22 09:01:42 -0400 |
commit | 7b7806b85096391e364a03ef3551970620b5492e (patch) | |
tree | ce5416a3f49a79e941e93197c31bdc917ec45d82 /net_ntrip.c | |
parent | 00b768d7ec851a5cff99d5a6ac169e789438001f (diff) | |
download | gpsd-7b7806b85096391e364a03ef3551970620b5492e.tar.gz |
Lose the assumption that socket_t is an integer.
Diffstat (limited to 'net_ntrip.c')
-rw-r--r-- | net_ntrip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net_ntrip.c b/net_ntrip.c index 5f1f7e53..dd21f139 100644 --- a/net_ntrip.c +++ b/net_ntrip.c @@ -359,7 +359,7 @@ static int ntrip_stream_get_req(const struct ntrip_stream_t *stream) char buf[BUFSIZ]; dsock = netlib_connectsock(AF_UNSPEC, stream->url, stream->port, "tcp"); - if (dsock == -1) { + if (BAD_SOCKET(dsock)) { gpsd_report(LOG_ERROR, "ntrip stream connect error %d\n", dsock); return -1; } |