summaryrefslogtreecommitdiff
path: root/libgpsd_core.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-04-01 04:29:17 -0400
committerEric S. Raymond <esr@thyrsus.com>2011-04-01 04:29:17 -0400
commitabb7c5d31235af27b4b3ac620b97a8c5260f26a3 (patch)
tree9382c5395ca26d378c89b9561a15cba2b72603b4 /libgpsd_core.c
parente9405f56aa4a2f39852362b3134878c3049783c2 (diff)
downloadgpsd-abb7c5d31235af27b4b3ac620b97a8c5260f26a3.tar.gz
Regularize some names.
Diffstat (limited to 'libgpsd_core.c')
-rw-r--r--libgpsd_core.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libgpsd_core.c b/libgpsd_core.c
index 043250d0..9f132461 100644
--- a/libgpsd_core.c
+++ b/libgpsd_core.c
@@ -63,9 +63,9 @@ int gpsd_switch_driver(struct gps_device_t *session, char *type_name)
(*dp)->type_name);
gpsd_assert_sync(session);
/*@i@*/ session->device_type = *dp;
-#ifdef ALLOW_RECONFIGURE
+#ifdef RECONFIGURE_ENABLE
session->gpsdata.dev.mincycle = session->device_type->min_cycle;
-#endif /* ALLOW_RECONFIGURE */
+#endif /* RECONFIGURE_ENABLE */
/* reconfiguration might be required */
if (identified && session->device_type->event_hook != NULL)
session->device_type->event_hook(session,
@@ -159,7 +159,7 @@ void gpsd_init(struct gps_device_t *session, struct gps_context_t *context,
void gpsd_deactivate(struct gps_device_t *session)
/* temporarily release the GPS device */
{
-#ifdef ALLOW_RECONFIGURE
+#ifdef RECONFIGURE_ENABLE
if (!session->context->readonly
&& session->device_type != NULL
&& session->device_type->event_hook != NULL) {
@@ -170,7 +170,7 @@ void gpsd_deactivate(struct gps_device_t *session)
&& session->device_type->mode_switcher != NULL)
session->device_type->mode_switcher(session, 0);
}
-#endif /* ALLOW_RECONFIGURE */
+#endif /* RECONFIGURE_ENABLE */
gpsd_report(LOG_INF, "closing GPS=%s (%d)\n",
session->gpsdata.dev.path, session->gpsdata.gps_fd);
(void)gpsd_close(session);