[Git][NTPsec/ntpsec][master] Remove unused variable: timer_overflows
Hal Murray
gitlab at mg.gitlab.com
Mon Sep 12 07:26:29 UTC 2016
Hal Murray pushed to branch master at NTPsec / ntpsec
Commits:
75b83178 by Hal Murray at 2016-09-11T23:03:34-07:00
Remove unused variable: timer_overflows
- - - - -
2 changed files:
- include/ntpd.h
- ntpd/ntp_timer.c
Changes:
=====================================
include/ntpd.h
=====================================
--- a/include/ntpd.h
+++ b/include/ntpd.h
@@ -447,7 +447,6 @@ extern volatile bool alarm_flag; /* alarm flag */
extern volatile u_long alarm_overflow;
extern u_long current_time; /* seconds since startup */
extern u_long timer_timereset;
-extern u_long timer_overflows;
extern u_long timer_xmtcalls;
extern bool leap_sec_in_progress;
#ifdef ENABLE_LEAP_SMEAR
=====================================
ntpd/ntp_timer.c
=====================================
--- a/ntpd/ntp_timer.c
+++ b/ntpd/ntp_timer.c
@@ -69,7 +69,6 @@ u_long current_time; /* seconds since startup */
* Stats. Number of overflows and number of calls to transmit().
*/
u_long timer_timereset;
-u_long timer_overflows;
u_long timer_xmtcalls;
static void alarming (int);
@@ -155,7 +154,6 @@ init_timer(void)
huffpuff_timer = 0;
interface_timer = 0;
current_time = 0;
- timer_overflows = 0;
timer_xmtcalls = 0;
timer_timereset = 0;
@@ -379,7 +377,6 @@ timer_interfacetimeout(u_long timeout)
void
timer_clr_stats(void)
{
- timer_overflows = 0;
timer_xmtcalls = 0;
timer_timereset = current_time;
}
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/75b83178c80519dfadb3250b2a54b3ea677329ce
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20160912/09e835fc/attachment.html>
More information about the vc
mailing list