Fix build of kern/subr_unit.c, broken by r300539
Reported by: peter Pointyhat to: asomers Sponsored by: Spectra Logic Corp
This commit is contained in:
parent
22d9c132f6
commit
37f32e5379
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=300544
@ -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);
|
||||
|
@ -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 ----------------------*/
|
||||
|
Loading…
Reference in New Issue
Block a user