aboutsummaryrefslogtreecommitdiff
path: root/ntpd/refclock_arc.c
diff options
context:
space:
mode:
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