diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-04-01 04:29:17 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-04-01 04:29:17 -0400 |
commit | abb7c5d31235af27b4b3ac620b97a8c5260f26a3 (patch) | |
tree | 9382c5395ca26d378c89b9561a15cba2b72603b4 /monitor_sirf.c | |
parent | e9405f56aa4a2f39852362b3134878c3049783c2 (diff) | |
download | gpsd-abb7c5d31235af27b4b3ac620b97a8c5260f26a3.tar.gz |
Regularize some names.
Diffstat (limited to 'monitor_sirf.c')
-rw-r--r-- | monitor_sirf.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/monitor_sirf.c b/monitor_sirf.c index f474bb1a..b647f2ed 100644 --- a/monitor_sirf.c +++ b/monitor_sirf.c @@ -197,12 +197,12 @@ static bool sirf_initialize(void) /*@ +nullpass @*/ /*@ -onlytrans @*/ -#ifdef ALLOW_CONTROLSEND +#ifdef CONTROLSEND_ENABLE /* probe for version */ /*@ -compdef @*/ (void)monitor_control_send((unsigned char *)"\x84\x00", 2); /*@ +compdef @*/ -#endif /* ALLOW_CONTROLSEND */ +#endif /* CONTROLSEND_ENABLE */ /* initialize the GPS context's time fields */ gpsd_time_init(session.context, time(NULL)); @@ -631,12 +631,12 @@ static void sirf_update(void) break; } -#ifdef ALLOW_CONTROLSEND +#ifdef CONTROLSEND_ENABLE /* elicit navigation parameters */ if (dispmode && (time(NULL) % 10 == 0)) { (void)monitor_control_send((unsigned char *)"\x98\x00", 2); } -#endif /* ALLOW_CONTROLSEND */ +#endif /* CONTROLSEND_ENABLE */ /*@ -nullpass -nullderef @*/ if (dispmode) { @@ -648,7 +648,7 @@ static void sirf_update(void) /*@ +globstate */ -#ifdef ALLOW_CONTROLSEND +#ifdef CONTROLSEND_ENABLE static int sirf_command(char line[]) { unsigned char buf[BUFSIZ]; @@ -714,7 +714,7 @@ static int sirf_command(char line[]) return COMMAND_UNKNOWN; /* no match */ } -#endif /* ALLOW_CONTROLSEND */ +#endif /* CONTROLSEND_ENABLE */ static void sirf_wrap(void) { @@ -731,11 +731,11 @@ static void sirf_wrap(void) const struct monitor_object_t sirf_mmt = { .initialize = sirf_initialize, .update = sirf_update, -#ifdef ALLOW_CONTROLSEND +#ifdef CONTROLSEND_ENABLE .command = sirf_command, #else .command = NULL, -#endif /* ALLOW_CONTROLSEND */ +#endif /* CONTROLSEND_ENABLE */ .wrap = sirf_wrap, .min_y = 22,.min_x = 80, .driver = &sirf_binary, |