From 37f32e5379fab863ddbb06e179035e6c75783035 Mon Sep 17 00:00:00 2001 From: Alan Somers Date: Tue, 24 May 2016 00:14:58 +0000 Subject: [PATCH] Fix build of kern/subr_unit.c, broken by r300539 Reported by: peter Pointyhat to: asomers Sponsored by: Spectra Logic Corp --- sys/kern/subr_unit.c | 6 +++--- sys/sys/bitstring.h | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/sys/kern/subr_unit.c b/sys/kern/subr_unit.c index 4d784e65cdef..5a627625cb6c 100644 --- a/sys/kern/subr_unit.c +++ b/sys/kern/subr_unit.c @@ -984,9 +984,9 @@ main(int argc, char **argv) struct unrhdr *uh; char *a; long count = 10000; /* Number of unrs to test */ - long reps = 1; + long reps = 1, m; int ch; - u_int i, x, m, j; + u_int i, x, j; verbose = false; @@ -1043,7 +1043,7 @@ main(int argc, char **argv) print_unrhdr(uh); check_unrhdr(uh, __LINE__); } - for (i = 0; i < count; i++) { + for (i = 0; i < (u_int)count; i++) { if (a[i]) { if (verbose) { printf("C %u\n", i); diff --git a/sys/sys/bitstring.h b/sys/sys/bitstring.h index 9659dba9c452..fa0ee19d859a 100644 --- a/sys/sys/bitstring.h +++ b/sys/sys/bitstring.h @@ -65,9 +65,10 @@ #ifdef _KERNEL #include #include -#include #endif +#include + typedef unsigned long bitstr_t; /*---------------------- Private Implementation Details ----------------------*/