diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2009-01-05 21:47:53 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2009-01-05 21:47:53 +0000 |
commit | b733f7ba16cc88b9dca875998c57bbb09b113b22 (patch) | |
tree | 6ddae3b1683a3f4459f0d17ad702aea5a7ab96a7 /serial.c | |
parent | ce47fae04c9742560ae5dedb92c485263dcb89f9 (diff) | |
download | gpsd-b733f7ba16cc88b9dca875998c57bbb09b113b22.tar.gz |
This diff goes most of the way to getting us splint-clean again.
Diffstat (limited to 'serial.c')
-rw-r--r-- | serial.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -208,14 +208,14 @@ int gpsd_open(struct gps_device_t *session) struct stat sb; mode_t mode = (mode_t)O_RDWR; - /*@ -boolops @*/ + /*@ -boolops -type @*/ if (session->context->readonly || ((stat(session->gpsdata.gps_device, &sb) != -1) && ((sb.st_mode & S_IFCHR) != S_IFCHR))){ mode = (mode_t)O_RDONLY; gpsd_report(LOG_INF, "opening read-only GPS data source at '%s'\n", session->gpsdata.gps_device); } else { gpsd_report(LOG_INF, "opening GPS data source at '%s'\n", session->gpsdata.gps_device); } - /*@ +boolops @*/ + /*@ +boolops +type @*/ if ((session->gpsdata.gps_fd = open(session->gpsdata.gps_device, (int)(mode|O_NONBLOCK|O_NOCTTY))) < 0) { gpsd_report(LOG_ERROR, "device open failed: %s - retrying read-only\n", strerror(errno)); |