summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gpsmon.c5
-rw-r--r--isgps.c5
-rw-r--r--libgps_core.c8
3 files changed, 10 insertions, 8 deletions
diff --git a/gpsmon.c b/gpsmon.c
index 9a1af498..0a8531c5 100644
--- a/gpsmon.c
+++ b/gpsmon.c
@@ -699,11 +699,12 @@ int main(int argc, char **argv)
if ((*active)->driver->rate_switcher) {
int dfd = session.gpsdata.gps_fd;
session.gpsdata.gps_fd = controlfd;
- if ((*active)->
- driver->rate_switcher(&session, rate)) {
+ /* *INDENT-OFF* */
+ if ((*active)->driver->rate_switcher(&session, rate)) {
monitor_dump_send();
} else
monitor_complain("Rate not supported.");
+ /* *INDENT-OFF* */
session.gpsdata.gps_fd = dfd;
} else
monitor_complain
diff --git a/isgps.c b/isgps.c
index 97d3aa31..4c89ad40 100644
--- a/isgps.c
+++ b/isgps.c
@@ -282,13 +282,14 @@ enum isgpsstat_t isgps_decode(struct gps_packet_t *session,
session->isgps.buf[session->isgps.bufindex] =
session->isgps.curr_word;
+ /* *INDENT-OFF* */
if ((session->isgps.bufindex == 0) &&
- !preamble_match((isgps30bits_t *) session->isgps.
- buf)) {
+ !preamble_match((isgps30bits_t *) session->isgps.buf)) {
gpsd_report(ISGPS_ERRLEVEL_BASE + 1,
"ISGPS word 0 not a preamble- punting\n");
return ISGPS_NO_SYNC;
}
+ /* *INDENT-ON* */
session->isgps.bufindex++;
if (length_check(session)) {
diff --git a/libgps_core.c b/libgps_core.c
index d47aace5..74fe2e5d 100644
--- a/libgps_core.c
+++ b/libgps_core.c
@@ -420,18 +420,18 @@ int gps_unpack(char *buf, struct gps_data_t *gpsdata)
sizeof(gpsdata->devices));
gpsdata->devices.ndevices =
(int)strtol(sp2 + 2, &sp2, 10);
+ /* *INDENT-OFF* */
(void)strlcpy(gpsdata->devices.list[0].path,
strtok_r(sp2 + 1, " \r\n", &ns2),
- sizeof(gpsdata->devices.list[0].
- path));
+ sizeof(gpsdata->devices.list[0].path));
i = 0;
while ((sp2 =
strtok_r(NULL, " \r\n", &ns2)) != NULL)
if (i < MAXUSERDEVS - 1)
(void)strlcpy(gpsdata->devices.list[++i].
path, sp2,
- sizeof(gpsdata->devices.
- list[0].path));
+ sizeof(gpsdata->devices.list[0].path));
+ /* *INDENT-ON* */
free(rc);
gpsdata->set |= DEVICELIST_SET;
gpsdata->devices.time = timestamp();