summaryrefslogtreecommitdiff
path: root/gpsctl.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-09-09 22:10:57 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-09-09 22:10:57 +0000
commit48db3e2e6a7fb12f6133725600ed5dc7ae36fdc8 (patch)
tree960c444e3b85960484bcf8d5592d7d2a152bb115 /gpsctl.c
parentf8568d0193cd3d5e730b986e79d49fcda7c2367a (diff)
downloadgpsd-48db3e2e6a7fb12f6133725600ed5dc7ae36fdc8.tar.gz
More splint cleanup. All regression tests pass.
Diffstat (limited to 'gpsctl.c')
-rw-r--r--gpsctl.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gpsctl.c b/gpsctl.c
index fb6c4bad..0b2fb87b 100644
--- a/gpsctl.c
+++ b/gpsctl.c
@@ -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);