From 628b0179b02c97a97d5d0cfe6edce2de1ef00e03 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Fri, 7 May 2010 01:09:36 -0400 Subject: Eliminate some uses or ERROR_IS. Drivers shouldn't really set this any more, as it's used to signal that the attempt to get sync on a data stream has failed. Also, make some UDP cases wirk bewtter by arranging not to throw ERROR_IS on leading comments. No, I don't know why this didn't fail sooner. It must have sommetthing to do with the granularity of the writes from ptys --- driver_navcom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'driver_navcom.c') diff --git a/driver_navcom.c b/driver_navcom.c index 50ff5811..60d65d8f 100644 --- a/driver_navcom.c +++ b/driver_navcom.c @@ -777,7 +777,7 @@ static gps_mask_t handle_0x86(struct gps_device_t *session) gpsd_report(LOG_ERROR, "Navcom: packet type 0x86: too many satellites!\n"); gpsd_zero_satellites(&session->gpsdata); - return ERROR_IS; + return 0; } prn = getub(buf, n); tracking_status = getub(buf, n + 1); -- cgit v1.2.1