summaryrefslogtreecommitdiff
path: root/driver_zodiac.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2012-09-22 08:59:54 -0400
committerEric S. Raymond <esr@thyrsus.com>2012-09-22 09:01:42 -0400
commit7b7806b85096391e364a03ef3551970620b5492e (patch)
treece5416a3f49a79e941e93197c31bdc917ec45d82 /driver_zodiac.c
parent00b768d7ec851a5cff99d5a6ac169e789438001f (diff)
downloadgpsd-7b7806b85096391e364a03ef3551970620b5492e.tar.gz
Lose the assumption that socket_t is an integer.
Diffstat (limited to 'driver_zodiac.c')
-rw-r--r--driver_zodiac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/driver_zodiac.c b/driver_zodiac.c
index 9a99c663..63ee40e8 100644
--- a/driver_zodiac.c
+++ b/driver_zodiac.c
@@ -87,7 +87,7 @@ static ssize_t zodiac_spew(struct gps_device_t *session, unsigned short type,
h.flags = 0;
h.csum = zodiac_checksum((unsigned short *)&h, 4);
- if (session->gpsdata.gps_fd != -1) {
+ if (!BAD_SOCKET(session->gpsdata.gps_fd)) {
size_t hlen, datlen;
hlen = sizeof(h);
datlen = sizeof(unsigned short) * dlen;