aboutsummaryrefslogtreecommitdiff
path: root/contrib/ntp/util/hist.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/ntp/util/hist.c')
-rw-r--r--contrib/ntp/util/hist.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/contrib/ntp/util/hist.c b/contrib/ntp/util/hist.c
index ee4e93ad6a27..b02d73fdd7d9 100644
--- a/contrib/ntp/util/hist.c
+++ b/contrib/ntp/util/hist.c
@@ -8,14 +8,14 @@
*/
#ifdef HAVE_CONFIG_H
-#include <config.h>
+# include <config.h>
#endif
-#include <sys/time.h>
-#include <stdio.h>
-#include <stdlib.h>
#include "ntp_types.h"
+#include <stdio.h>
+#include <stdlib.h>
+
#define NBUF 100001 /* size of basic histogram */
#define NSRT 20000 /* size of overflow histogram */
#define NCNT (600 * 1000000) /* sample interval (us) */
@@ -79,7 +79,7 @@ main(
}
if (n == 0)
return;
- qsort((char *)ovfl, (int)n, sizeof(long), col);
+ qsort((char *)ovfl, (size_t)n, sizeof(long), col);
w = 0;
j = 0;
for (i = 0; i < n; i++) {