summaryrefslogtreecommitdiff
path: root/driver_garmin.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2010-04-13 22:48:39 -0400
committerEric S. Raymond <esr@thyrsus.com>2010-04-13 22:48:39 -0400
commit3f4948b0fa37f9dfd41b952fa3193c4df4ef1fc9 (patch)
tree137dd3b91b7d0836786db07c2dfdb4e9eb5b6078 /driver_garmin.c
parent7581e793d4073184cdf8d6a2946fbd5f90f6e77d (diff)
downloadgpsd-3f4948b0fa37f9dfd41b952fa3193c4df4ef1fc9.tar.gz
Attempt to reinstate some anti-indenting guards.
It'd be nice if GNU indent didn't lose its cookies this time... All regression tests pass.
Diffstat (limited to 'driver_garmin.c')
-rw-r--r--driver_garmin.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/driver_garmin.c b/driver_garmin.c
index 99d92209..b6afdcf6 100644
--- a/driver_garmin.c
+++ b/driver_garmin.c
@@ -1273,6 +1273,7 @@ static ssize_t garmin_get_packet(struct gps_device_t *session)
return (ssize_t)( 0 == GetPacket( session ) ? 1 : 0);
}
+/* *INDENT-OFF* */
const struct gps_type_t garmin_usb_binary_old =
{
.type_name = "Garmin USB binary", /* full name of type */
@@ -1297,8 +1298,10 @@ const struct gps_type_t garmin_usb_binary_old =
.ntp_offset = garmin_ntp_offset,
#endif /* NTPSHM_ ENABLE */
};
+/* *INDENT-ON* */
#endif /* __UNUSED__ */
+/* *INDENT-OFF* */
const struct gps_type_t garmin_usb_binary =
{
.type_name = "Garmin USB binary", /* full name of type */
@@ -1312,9 +1315,7 @@ const struct gps_type_t garmin_usb_binary =
.event_hook = garmin_event_hook,/* lifetime ebent handler */
#ifdef ALLOW_RECONFIGURE
.speed_switcher = NULL, /* no speed switcher */
-
- /* Garmin USB Binary has no NMEA */
- .mode_switcher = NULL, /* how to change modes */
+ .mode_switcher = NULL, /* Garmin USB Binary has no NMEA */
.rate_switcher = NULL, /* no sample-rate switcher */
.min_cycle = 1, /* not relevant, no rate switch */
#endif /* ALLOW_RECONFIGURE */
@@ -1325,7 +1326,9 @@ const struct gps_type_t garmin_usb_binary =
.ntp_offset = garmin_ntp_offset,
#endif /* NTPSHM_ ENABLE */
};
+/* *INDENT-ON* */
+/* *INDENT-OFF* */
const struct gps_type_t garmin_ser_binary =
{
.type_name = "Garmin Serial binary", /* full name of type */
@@ -1350,6 +1353,7 @@ const struct gps_type_t garmin_ser_binary =
.ntp_offset = garmin_ntp_offset,
#endif /* NTPSHM_ ENABLE */
};
+/* *INDENT-ON* */
#endif /* GARMIN_ENABLE */