+1999-07-22 Harlan Stenn <stenn@whimsy.udel.edu>
+
+ * 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 <easmith@beatrice.rutgers.edu>
+
1999-07-21 Harlan Stenn <stenn@whimsy.udel.edu>
* configure.in (ac_cv_make_ntptime): Add tv_nsec check.
#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.
#endif
#ifdef LIBDEBUG
-extern int debug;
#include "lib_strbuf.h"
#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;
static CRITICAL_SECTION TimerCritialSection; /* lock for LastTimerCount & LastTimerTime */
-extern int debug;
int
gettimeofday(
struct timeval *tv
int status
)
{
- extern int debug;
if (debug) /* did not become a service, simply exit */
ExitThread((DWORD)status);
#include "recvbuff.h"
#include "iosignal.h"
-extern int debug;
-
/*
* Memory allocation
*/
*/
#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
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 | \
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.
*/
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));
/*
* 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;
# 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
*/
extern const char *Version;
-/*
- * Alarm flag. Imported from timer module
- */
-extern int alarm_flag;
-
int was_alarmed;
#ifdef DECL_SYSCALL