From: Harlan Stenn Date: Thu, 22 Jul 1999 22:34:50 +0000 (-0000) Subject: Many files: X-Git-Tag: NTP_4_0_94b~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=19a1979bb1a0a6372aa0c25913ee40f4fa251a6d;p=thirdparty%2Fntp.git Many files: * libntp/authkeys.c: * libntp/ieee754io.c: * libntp/iosignal.c: * libntp/machines.c: * libntp/mexit.c: * libntp/recvbuff.c: * ntpd/ntp_filegen.c: * ntpd/ntp_loopfilter.c: * ntpd/ntp_request.c: * ntpd/ntp_timer.c: * ntpd/ntpd.c: Compile/lint cleanup From: Allen Smith bk: 37979c8ans_0UgGKIKgVMTQBIIK0WA --- diff --git a/ChangeLog b/ChangeLog index 0bf3493128..5956374022 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,18 @@ +1999-07-22 Harlan Stenn + + * libntp/authkeys.c: + * libntp/ieee754io.c: + * libntp/iosignal.c: + * libntp/machines.c: + * libntp/mexit.c: + * libntp/recvbuff.c: + * ntpd/ntp_filegen.c: + * ntpd/ntp_loopfilter.c: + * ntpd/ntp_request.c: + * ntpd/ntp_timer.c: + * ntpd/ntpd.c: Compile/lint cleanup + From: Allen Smith + 1999-07-21 Harlan Stenn * configure.in (ac_cv_make_ntptime): Add tv_nsec check. diff --git a/libntp/authkeys.c b/libntp/authkeys.c index d90578048d..39ca4938f3 100644 --- a/libntp/authkeys.c +++ b/libntp/authkeys.c @@ -42,9 +42,6 @@ struct savekey { #define KEY_DES 0x100 /* this is a DES type key */ #define KEY_MD5 0x200 /* this is a MD5 type key */ -extern int debug; /* Volkswagen after life */ -extern u_long current_time; /* time since restart */ - /* * The hash table. This is indexed by the low order bits of the * keyid. We make this fairly big for potentially busy servers. diff --git a/libntp/ieee754io.c b/libntp/ieee754io.c index 28d98f8db7..54eebf9f92 100644 --- a/libntp/ieee754io.c +++ b/libntp/ieee754io.c @@ -22,7 +22,6 @@ static void put_byte P((unsigned char *, offsets_t, int *, unsigned char)); #endif #ifdef LIBDEBUG -extern int debug; #include "lib_strbuf.h" diff --git a/libntp/iosignal.c b/libntp/iosignal.c index 85710f7845..405b85ed0a 100644 --- a/libntp/iosignal.c +++ b/libntp/iosignal.c @@ -39,7 +39,6 @@ #include "ntp_if.h" #include "ntp_stdlib.h" #include "iosignal.h" -extern int debug; #if defined(HAVE_SIGNALED_IO) static int sigio_block_count = 0; diff --git a/libntp/machines.c b/libntp/machines.c index 4bf24aaf70..662ed47016 100644 --- a/libntp/machines.c +++ b/libntp/machines.c @@ -235,7 +235,6 @@ static ULONGLONG LastTimerTime = 0; static CRITICAL_SECTION TimerCritialSection; /* lock for LastTimerCount & LastTimerTime */ -extern int debug; int gettimeofday( struct timeval *tv diff --git a/libntp/mexit.c b/libntp/mexit.c index b04e7de8f7..a7b6cce1fa 100644 --- a/libntp/mexit.c +++ b/libntp/mexit.c @@ -14,7 +14,6 @@ service_exit( int status ) { - extern int debug; if (debug) /* did not become a service, simply exit */ ExitThread((DWORD)status); diff --git a/libntp/recvbuff.c b/libntp/recvbuff.c index fb4434c5c5..f888e3bb22 100644 --- a/libntp/recvbuff.c +++ b/libntp/recvbuff.c @@ -11,8 +11,6 @@ #include "recvbuff.h" #include "iosignal.h" -extern int debug; - /* * Memory allocation */ diff --git a/ntpd/ntp_filegen.c b/ntpd/ntp_filegen.c index 79dc11a77c..80b9000b90 100644 --- a/ntpd/ntp_filegen.c +++ b/ntpd/ntp_filegen.c @@ -50,10 +50,6 @@ */ #define FGEN_AGE_SECS (24*60*60) /* life time of FILEGEN_AGE in seconds */ -#ifdef DEBUG -extern int debug; -#endif - static void filegen_open P((FILEGEN *, u_long)); static int valid_fileref P((char *, char *)); #ifdef UNUSED diff --git a/ntpd/ntp_loopfilter.c b/ntpd/ntp_loopfilter.c index fc0701384a..c2632a9b5f 100644 --- a/ntpd/ntp_loopfilter.c +++ b/ntpd/ntp_loopfilter.c @@ -134,36 +134,6 @@ double last_offset; /* last clock offset (s) */ double allan_xpt; /* Allan intercept (s) */ double sys_error; /* system standard error (s) */ -/* - * Imported from ntp_proto.c module - */ -extern double sys_rootdelay; /* root delay */ -extern double sys_rootdispersion; /* root dispersion */ -extern s_char sys_precision; /* local clock precision */ -extern struct peer *sys_peer; /* system peer pointer */ -extern u_char sys_leap; /* system leap bits */ -extern l_fp sys_reftime; /* time at last update */ - -/* - * Imported from the library - */ -extern double sys_maxfreq; /* max frequency correction */ - -/* - * Imported from ntp_io.c module - */ -extern struct interface *loopback_interface; - -/* - * Imported from ntpd.c module - */ -extern int debug; /* global debug flag */ - -/* - * Imported from ntp_io.c module - */ -extern u_long current_time; /* like it says, in seconds */ - #if defined(KERNEL_PLL) /* Emacs cc-mode goes nuts if we split the next line... */ #define MOD_BITS (MOD_OFFSET | MOD_MAXERROR | MOD_ESTERROR | \ diff --git a/ntpd/ntp_request.c b/ntpd/ntp_request.c index 39daa9462d..2dda53452a 100644 --- a/ntpd/ntp_request.c +++ b/ntpd/ntp_request.c @@ -162,47 +162,6 @@ u_long numresppkts; /* number of resp packets sent with data */ u_long errorcounter[INFO_ERR_AUTH+1]; /* lazy way to count errors, indexed */ /* by the error code */ -/* - * Imported from ntp_proto - */ -extern int sys_authenticate; - -/* - * Imported from the I/O module - */ -extern struct interface *any_interface; - -/* - * Imported from the main routines - */ -extern int debug; - -/* - * Imported from the timer module - */ -extern u_long current_time; - -/* - * Imported from ntp_loopfilter.c - */ -extern int pll_control; -extern int kern_enable; -extern int ntp_enable; -extern u_long pps_control; - -/* - * Imported from ntp_monitor.c - */ -extern int mon_enabled; - -/* - * Imported from ntp_util.c - */ -extern int stats_control; - -extern struct peer *peer_hash[]; -extern struct peer *sys_peer; - /* * A hack. To keep the authentication module clear of ntp-ism's, we * include a time reset variable for its stats here. @@ -1057,14 +1016,6 @@ io_stats( */ extern u_long io_timereset; - extern u_long packets_dropped; - extern u_long packets_ignored; - extern u_long packets_received; - extern u_long packets_sent; - extern u_long packets_notsent; - extern u_long handler_calls; - extern u_long handler_pkts; - io = (struct info_io_stats *)prepare_pkt(srcadr, inter, inpkt, sizeof(struct info_io_stats)); @@ -1101,7 +1052,6 @@ timer_stats( /* * Importations from the timer module */ - extern u_long alarm_overflow; extern u_long timer_timereset; extern u_long timer_overflows; extern u_long timer_xmtcalls; diff --git a/ntpd/ntp_timer.c b/ntpd/ntp_timer.c index 9fb5f8145d..8f1c3e236c 100644 --- a/ntpd/ntp_timer.c +++ b/ntpd/ntp_timer.c @@ -20,8 +20,6 @@ # include "ntp_timer.h" #endif -extern int debug; - /* * These routines provide support for the event timer. The timer is * implemented by an interrupt routine which sets a flag once every diff --git a/ntpd/ntpd.c b/ntpd/ntpd.c index f6249bd595..d72451e9eb 100644 --- a/ntpd/ntpd.c +++ b/ntpd/ntpd.c @@ -146,11 +146,6 @@ int initializing; */ extern const char *Version; -/* - * Alarm flag. Imported from timer module - */ -extern int alarm_flag; - int was_alarmed; #ifdef DECL_SYSCALL