aboutsummaryrefslogtreecommitdiff
path: root/ntpd/refclock_arc.c
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2024-05-10 15:15:56 +0000
committerCy Schubert <cy@FreeBSD.org>2024-05-26 22:55:52 +0000
commit1f833b3fc9968c3dd7ed79ccf0525ebf16c891ad (patch)
tree85801af20e3b694584668aeb39ecec75ee71f72c /ntpd/refclock_arc.c
parentab1f1aa8333369a83ff284848fc3fc2e52d5f29f (diff)
Diffstat (limited to 'ntpd/refclock_arc.c')
-rw-r--r--ntpd/refclock_arc.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/ntpd/refclock_arc.c b/ntpd/refclock_arc.c
index d2dba54cb462..73bb63bc408a 100644
--- a/ntpd/refclock_arc.c
+++ b/ntpd/refclock_arc.c
@@ -870,15 +870,18 @@ arc_receive(
struct recvbuf *rbufp
)
{
+ static int quality_average = 0;
+ static int quality_sum = 0;
+ static int quality_polls = 0;
register struct arcunit *up;
struct refclockproc *pp;
struct peer *peer;
char c;
- int i, n, wday, month, flags, status;
+ int i, wday, month, flags, status;
int arc_last_offset;
- static int quality_average = 0;
- static int quality_sum = 0;
- static int quality_polls = 0;
+ #ifdef DEBUG
+ int n;
+ #endif
/*
* Initialize pointers and read the timecode and timestamp
@@ -1182,8 +1185,8 @@ arc_receive(
status = pp->a_lastcode[15];
#ifdef DEBUG
if(debug) { printf("arc: status 0x%.2x flags 0x%.2x\n", flags, status); }
-#endif
n = 9;
+#endif
/*
Validate received values at least enough to prevent internal