diff options
author | Alan Somers <asomers@FreeBSD.org> | 2016-05-24 00:14:58 +0000 |
---|---|---|
committer | Alan Somers <asomers@FreeBSD.org> | 2016-05-24 00:14:58 +0000 |
commit | 37f32e5379fab863ddbb06e179035e6c75783035 (patch) | |
tree | a57f8314e8aa5da200052f99dc85a63d95308f67 | |
parent | 22d9c132f63a944545d8979907f8ba2038b22c27 (diff) |
Notes
-rw-r--r-- | sys/kern/subr_unit.c | 6 | ||||
-rw-r--r-- | 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 <sys/libkern.h> #include <sys/malloc.h> -#include <sys/types.h> #endif +#include <sys/types.h> + typedef unsigned long bitstr_t; /*---------------------- Private Implementation Details ----------------------*/ |