aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/timed
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/timed')
-rw-r--r--usr.sbin/timed/timed/Makefile2
-rw-r--r--usr.sbin/timed/timed/networkdelta.c10
-rw-r--r--usr.sbin/timed/timedc/Makefile2
3 files changed, 9 insertions, 5 deletions
diff --git a/usr.sbin/timed/timed/Makefile b/usr.sbin/timed/timed/Makefile
index 6f73824fbd74..af70b066b7ca 100644
--- a/usr.sbin/timed/timed/Makefile
+++ b/usr.sbin/timed/timed/Makefile
@@ -11,5 +11,7 @@ SRCS= acksend.c candidate.c correct.c master.c networkdelta.c readmsg.c \
DPADD= ${LIBUTIL}
LDADD= -lutil
+WARNS?= 1
+
.include "../../Makefile.inc"
.include <bsd.prog.mk>
diff --git a/usr.sbin/timed/timed/networkdelta.c b/usr.sbin/timed/timed/networkdelta.c
index 5f1af7e74c55..5919d62a0f04 100644
--- a/usr.sbin/timed/timed/networkdelta.c
+++ b/usr.sbin/timed/timed/networkdelta.c
@@ -152,11 +152,11 @@ networkdelta()
* in <<Numerical Recipes>>.
*/
static long
-median(a, eps_ptr, x, xlim, gnuf)
- float a; /* initial guess for the median */
- float *eps_ptr; /* spacing near the median */
- long *x, *xlim; /* the data */
- unsigned int gnuf; /* good enough estimate */
+median(float a, float *eps_ptr, long *x, long *xlim, unsigned int gnuf)
+ /* float a; */ /* initial guess for the median */
+ /* float *eps_ptr; */ /* spacing near the median */
+ /* long *x, *xlim; */ /* the data */
+ /* unsigned int gnuf; */ /* good enough estimate */
{
long *xptr;
float ap = LONG_MAX; /* bounds on the median */
diff --git a/usr.sbin/timed/timedc/Makefile b/usr.sbin/timed/timedc/Makefile
index 5262f46d805d..89e303b0c894 100644
--- a/usr.sbin/timed/timedc/Makefile
+++ b/usr.sbin/timed/timedc/Makefile
@@ -9,5 +9,7 @@ SRCS= cmds.c cmdtab.c timedc.c byteorder.c measure.c cksum.c
BINOWN= root
BINMODE= 4555
+WARNS?= 1
+
.include "../../Makefile.inc"
.include <bsd.prog.mk>