Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/dist/ntp/ntpd make it build without REFCLOCK but with -Wall
details: https://anonhg.NetBSD.org/src/rev/9baf815976f5
branches: trunk
changeset: 525892:9baf815976f5
user: drochner <drochner%NetBSD.org@localhost>
date: Fri Apr 19 20:45:54 2002 +0000
description:
make it build without REFCLOCK but with -Wall
diffstat:
dist/ntp/ntpd/ntp_control.c | 8 +++++---
dist/ntp/ntpd/ntp_io.c | 8 +++++---
2 files changed, 10 insertions(+), 6 deletions(-)
diffs (74 lines):
diff -r 634ff3abd402 -r 9baf815976f5 dist/ntp/ntpd/ntp_control.c
--- a/dist/ntp/ntpd/ntp_control.c Fri Apr 19 18:30:58 2002 +0000
+++ b/dist/ntp/ntpd/ntp_control.c Fri Apr 19 20:45:54 2002 +0000
@@ -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 @@
* 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 @@
peer->last_event);
}
-
+#ifdef REFCLOCK
/*
* ctlclkstatus - return a status word for this clock
*/
@@ -723,7 +725,7 @@
return ((u_short)(this_clock->currentstatus) << 8) |
(u_short)(this_clock->lastevent);
}
-
+#endif
/*
* ctlsysstatus - return the system status word
diff -r 634ff3abd402 -r 9baf815976f5 dist/ntp/ntpd/ntp_io.c
--- a/dist/ntp/ntpd/ntp_io.c Fri Apr 19 18:30:58 2002 +0000
+++ b/dist/ntp/ntpd/ntp_io.c Fri Apr 19 20:45:54 2002 +0000
@@ -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 @@
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 @@
}
}
-
+#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 @@
maxactivefd = newmax;
}
}
-
+#endif
/*
* findbcastinter - find broadcast interface corresponding to address
Home |
Main Index |
Thread Index |
Old Index