diff options
Diffstat (limited to 'driver_zodiac.c')
-rw-r--r-- | driver_zodiac.c | 2 |
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; |