summaryrefslogtreecommitdiff
path: root/monitor_nmea.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-01-17 08:18:58 -0500
committerEric S. Raymond <esr@thyrsus.com>2011-01-17 08:18:58 -0500
commitef398df4788cc2055e9da5e26ef28612e266bf98 (patch)
treec4d44417aebdbb5c3912f9f4e06c03435ea96082 /monitor_nmea.c
parent24e944b7f643dd05fe81434112038d351ea7f78c (diff)
downloadgpsd-ef398df4788cc2055e9da5e26ef28612e266bf98.tar.gz
Clean up warnings reported by Charles Curley.
Diffstat (limited to 'monitor_nmea.c')
-rw-r--r--monitor_nmea.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/monitor_nmea.c b/monitor_nmea.c
index 5f6167aa..f5e10f22 100644
--- a/monitor_nmea.c
+++ b/monitor_nmea.c
@@ -301,7 +301,7 @@ const struct monitor_object_t nmea_mmt = {
*
*****************************************************************************/
-#ifdef ALLOW_CONTROLSEND
+#if defined(ALLOW_CONTROLSEND) && defined(ASHTECH_ENABLE)
static void monitor_nmea_send(const char *fmt, ...)
{
char buf[BUFSIZ];
@@ -312,7 +312,7 @@ static void monitor_nmea_send(const char *fmt, ...)
va_end(ap);
(void)monitor_control_send((unsigned char *)buf, strlen(buf));
}
-#endif /* ALLOW_CONTROLSEND */
+#endif /* defined(ALLOW_CONTROLSEND) && defined(ASHTECH_ENABLE) */
/*
* Yes, it's OK for most of these to be clones of the generic NMEA monitor