aboutsummaryrefslogtreecommitdiff
path: root/ntpd/refclock_nmea.c
diff options
context:
space:
mode:
Diffstat (limited to 'ntpd/refclock_nmea.c')
-rw-r--r--ntpd/refclock_nmea.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ntpd/refclock_nmea.c b/ntpd/refclock_nmea.c
index 131ccf641a56..a2d8d499156f 100644
--- a/ntpd/refclock_nmea.c
+++ b/ntpd/refclock_nmea.c
@@ -1408,6 +1408,7 @@ typedef unsigned char const UCC;
static char const * const s_eof_chars = ",*\r\n";
+#ifdef DEBUG
static int field_length(UCC *cp, unsigned int nfields)
{
char const * ep = (char const*)cp;
@@ -1419,6 +1420,7 @@ static int field_length(UCC *cp, unsigned int nfields)
? (int)((UCC*)ep - cp)
: (int)strlen((char const*)cp);
}
+#endif /* DEBUG */
/* /[,*\r\n]/ --> skip */
static int _parse_eof(UCC *cp, UCC ** ep)