summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/timed/Makefile1
-rw-r--r--usr.sbin/timed/timed/networkdelta.c8
2 files changed, 5 insertions, 4 deletions
diff --git a/usr.sbin/timed/Makefile b/usr.sbin/timed/Makefile
index 2f56510bca1c..fe2d8a4289ef 100644
--- a/usr.sbin/timed/Makefile
+++ b/usr.sbin/timed/Makefile
@@ -4,3 +4,4 @@
SUBDIR= timed timedc
.include <bsd.subdir.mk>
+# DO NOT DELETE
diff --git a/usr.sbin/timed/timed/networkdelta.c b/usr.sbin/timed/timed/networkdelta.c
index bf2a35389d5f..90c68d32b00b 100644
--- a/usr.sbin/timed/timed/networkdelta.c
+++ b/usr.sbin/timed/timed/networkdelta.c
@@ -155,8 +155,8 @@ median(float a, float *eps_ptr, long *x, long *xlim, unsigned int gnuf)
/* unsigned int gnuf; */ /* good enough estimate */
{
long *xptr;
- float ap = LONG_MAX; /* bounds on the median */
- float am = -LONG_MAX;
+ float ap = (float)LONG_MAX; /* bounds on the median */
+ float am = -(float)LONG_MAX;
float aa;
int npts; /* # of points above & below guess */
float xp; /* closet point above the guess */
@@ -178,8 +178,8 @@ median(float a, float *eps_ptr, long *x, long *xlim, unsigned int gnuf)
sum = 0.0;
sumx = 0.0;
npts = 0;
- xp = LONG_MAX;
- xm = -LONG_MAX;
+ xp = (float)LONG_MAX;
+ xm = -(float)LONG_MAX;
for (xptr = x; xptr != xlim; xptr++) {
float xx = *xptr;