make it build without REFCLOCK but with -Wall
This commit is contained in:
parent
b4ede19e63
commit
1fba973e56
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ntp_control.c,v 1.4 2001/04/08 18:33:43 itojun Exp $ */
|
||||
/* $NetBSD: ntp_control.c,v 1.5 2002/04/19 20:45:54 drochner Exp $ */
|
||||
|
||||
/*
|
||||
* ntp_control.c - respond to control messages and send async traps
|
||||
|
@ -47,7 +47,9 @@ struct ctl_proc {
|
|||
* Request processing routines
|
||||
*/
|
||||
static void ctl_error P((int));
|
||||
#ifdef REFCLOCK
|
||||
static u_short ctlclkstatus P((struct refclockstat *));
|
||||
#endif
|
||||
static void ctl_flushpkt P((int));
|
||||
static void ctl_putdata P((const char *, unsigned int, int));
|
||||
static void ctl_putstr P((const char *, const char *,
|
||||
|
@ -711,7 +713,7 @@ ctlpeerstatus(
|
|||
peer->last_event);
|
||||
}
|
||||
|
||||
|
||||
#ifdef REFCLOCK
|
||||
/*
|
||||
* ctlclkstatus - return a status word for this clock
|
||||
*/
|
||||
|
@ -723,7 +725,7 @@ ctlclkstatus(
|
|||
return ((u_short)(this_clock->currentstatus) << 8) |
|
||||
(u_short)(this_clock->lastevent);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
* ctlsysstatus - return the system status word
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ntp_io.c,v 1.6 2002/01/05 13:24:40 martin Exp $ */
|
||||
/* $NetBSD: ntp_io.c,v 1.7 2002/04/19 20:45:54 drochner Exp $ */
|
||||
|
||||
/*
|
||||
* ntp_io.c - input/output routines for ntpd. The socket-opening code
|
||||
|
@ -140,7 +140,9 @@ int maxactivefd;
|
|||
static int create_sockets P((u_int));
|
||||
static int open_socket P((struct sockaddr_in *, int, int));
|
||||
static void close_socket P((int));
|
||||
#ifdef REFCLOCK
|
||||
static void close_file P((int));
|
||||
#endif
|
||||
static char * fdbits P((int, fd_set *));
|
||||
|
||||
/*
|
||||
|
@ -1084,7 +1086,7 @@ close_socket(
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
#ifdef REFCLOCK
|
||||
/*
|
||||
* close_file - close a file and remove from the activefd list
|
||||
* added 1/31/1997 Greg Schueman for Windows NT portability
|
||||
|
@ -1108,7 +1110,7 @@ close_file(
|
|||
maxactivefd = newmax;
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
* findbcastinter - find broadcast interface corresponding to address
|
||||
|
|
Loading…
Reference in New Issue