diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2009-09-09 22:10:57 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2009-09-09 22:10:57 +0000 |
commit | 48db3e2e6a7fb12f6133725600ed5dc7ae36fdc8 (patch) | |
tree | 960c444e3b85960484bcf8d5592d7d2a152bb115 /gpsctl.c | |
parent | f8568d0193cd3d5e730b986e79d49fcda7c2367a (diff) | |
download | gpsd-48db3e2e6a7fb12f6133725600ed5dc7ae36fdc8.tar.gz |
More splint cleanup. All regression tests pass.
Diffstat (limited to 'gpsctl.c')
-rw-r--r-- | gpsctl.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -287,13 +287,13 @@ int main(int argc, char **argv) exit(0); } - if (to_nmea) { + if (to_nmea) { (void)gps_query(gpsdata, "?DEVICE={\"device\":%s,\"mode\":0}\r\n", device); if (gpsdata->dev.driver_mode != MODE_NMEA) { - gpsd_report(LOG_ERROR, "%s mode change to NMEA failed\n", gpsdata->dev.path); - status = 1; - } else - gpsd_report(LOG_PROG, "%s mode change succeeded\n", gpsdata->dev.path); + gpsd_report(LOG_ERROR, "%s mode change to NMEA failed\n", gpsdata->dev.path); + status = 1; + } else + gpsd_report(LOG_PROG, "%s mode change succeeded\n", gpsdata->dev.path); } else if (to_binary) { (void)gps_query(gpsdata, "?DEVICE={\"device\":%s,\"mode\":1}\r\n", device); |