summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authorasomers <asomers@FreeBSD.org>2016-05-24 00:14:58 +0000
committerasomers <asomers@FreeBSD.org>2016-05-24 00:14:58 +0000
commit69a8601e63c4e7e77f91dcf55e2456972c53d030 (patch)
treea57f8314e8aa5da200052f99dc85a63d95308f67 /sys/kern
parent63911f45771c4b025ae6817a985915a78927b27c (diff)
downloadFreeBSD-src-69a8601e63c4e7e77f91dcf55e2456972c53d030.zip
FreeBSD-src-69a8601e63c4e7e77f91dcf55e2456972c53d030.tar.gz
Fix build of kern/subr_unit.c, broken by r300539
Reported by: peter Pointyhat to: asomers Sponsored by: Spectra Logic Corp
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/subr_unit.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/subr_unit.c b/sys/kern/subr_unit.c
index 4d784e6..5a62762 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);
OpenPOWER on IntegriCloud