extern int ext_enable; /* external clock enabled */
extern int cal_enable; /* refclock calibrate enable */
extern int allow_panic; /* allow panic correction (-g) */
+extern int enable_panic_check; /* Can we check allow_panic's state? */
extern int force_step_once; /* always step time once at startup (-G) */
extern int mode_ntpdate; /* exit on first clock set (-q) */
extern int peer_ntpdate; /* count of ntpdate peers */
# include <utmpx.h>
#endif /* HAVE_UTMPX_H */
-/* The next line is from ntpd.h */
-extern int allow_panic; /* allow panic correction (-g) */
-extern int enable_panic_check; /* Can we check allow_panic's state? */
+int allow_panic = FALSE; /* allow panic correction (-g) */
+int enable_panic_check = TRUE; /* Can we check allow_panic's state? */
#ifndef USE_COMPILETIME_PIVOT
# define USE_COMPILETIME_PIVOT 1
int ext_enable; /* external clock enabled */
int pps_stratum; /* pps stratum */
int kernel_status; /* from ntp_adjtime */
-int allow_panic = FALSE; /* allow panic correction (-g) */
-int enable_panic_check = TRUE; /* Can we check allow_panic's state? */
int force_step_once = FALSE; /* always step time once at startup (-G) */
int mode_ntpdate = FALSE; /* exit on first clock set (-q) */
int freq_cnt; /* initial frequency clamp */
int always_step = 0;
int never_step = 0;
-int allow_panic = FALSE; /* glue for bug 2956 */
-int enable_panic_check = TRUE; /* Can we check allow_panic's state? */
-
int ntpdatemain (int, char **);
static void transmit (struct server *);
* wait for SNMP requests coming from the master agent
*/
-int allow_panic = FALSE; /* Glue for Bug 2956 */
-int enable_panic_check = TRUE; /* Can we check allow_panic's state? */
-
int
main (int argc, char **argv) {
int background = 0; /* start as background process */
#include "libntp.h"
-int allow_panic = FALSE; /* Glue for bug 2956 */
-int enable_panic_check = TRUE; /* Can we check allow_panic's state? */
-
int shutting_down;
int time_derived;
int time_adjusted;