#include <math.h>
#include <string.h>
#include <ctype.h>
+#include <stdlib.h>
#ifndef TRUE
typedef int bool;
return(deflt);
}
-static int floatcmp(const float *f1, const float *f2)
+static int floatcmp(const void *vf1, const void *vf2)
/* reverse-compare floats, so we get decreasing order */
{
+ float *f1 = (float *)vf1, *f2 = (float *)vf2;
return((int) (*f2 - *f1));
}
if (level >= CLOCK)
{
bool sync_ok = TRUE;
- int minhfl;
+ float minhfl;
if (hs1.value <= hr.value)
{