diff --git a/sys/kern/subr_unit.c b/sys/kern/subr_unit.c --- a/sys/kern/subr_unit.c +++ b/sys/kern/subr_unit.c @@ -192,7 +192,7 @@ CTASSERT((sizeof(struct unr) % sizeof(bitstr_t)) == 0); /* Number of bits we can store in the bitmap */ -#define NBITS (8 * sizeof(((struct unrb*)NULL)->map)) +#define NBITS (NBBY * sizeof(((struct unrb *)NULL)->map)) /* Is the unrb empty in at least the first len bits? */ static inline bool @@ -1011,7 +1011,7 @@ } static void -usage(char** argv) +usage(char **argv) { printf("%s [-h] [-r REPETITIONS] [-v]\n", argv[0]); }