diff options
author | ed <ed@FreeBSD.org> | 2009-02-26 20:59:05 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2009-02-26 20:59:05 +0000 |
commit | e2be17ec8c033846c60a3c3371e6709f46d8efcb (patch) | |
tree | c45658370bc2330138d202baa86af521f2c135cf /usr.sbin/timed | |
parent | 4a4a263618990b8afff0492a5ce9d9b350097834 (diff) | |
download | FreeBSD-src-e2be17ec8c033846c60a3c3371e6709f46d8efcb.zip FreeBSD-src-e2be17ec8c033846c60a3c3371e6709f46d8efcb.tar.gz |
Fix LLVM compiler errors related to K&R declarations with ANSI prototypes.
Submitted by: Pawel Worach <pawel.worach@gmail.com>
Diffstat (limited to 'usr.sbin/timed')
-rw-r--r-- | usr.sbin/timed/timed/Makefile | 2 | ||||
-rw-r--r-- | usr.sbin/timed/timed/networkdelta.c | 10 | ||||
-rw-r--r-- | usr.sbin/timed/timedc/Makefile | 2 |
3 files changed, 9 insertions, 5 deletions
diff --git a/usr.sbin/timed/timed/Makefile b/usr.sbin/timed/timed/Makefile index 6f73824..af70b06 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 5f1af7e..5919d62 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 5262f46..89e303b 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> |