diff options
author | Konstantin Belousov <kib@FreeBSD.org> | 2023-05-12 22:37:35 +0000 |
---|---|---|
committer | Konstantin Belousov <kib@FreeBSD.org> | 2023-05-29 22:10:35 +0000 |
commit | 042ec55f9df769697feb6cee472959d001a0f033 (patch) | |
tree | 30644b69c9910f2868bbc778c6c6c0bc6848e81a | |
parent | cf85818e05a9349dfba040fb32e752d3c691ed1f (diff) | |
download | src-042ec55f9df769697feb6cee472959d001a0f033.tar.gz src-042ec55f9df769697feb6cee472959d001a0f033.zip |
kern/subr_unit.c: some style
Use NBBY instead of spelling '8' literally.
Put space into the type specifier.
Reviewed by: markj
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D40089
-rw-r--r-- | sys/kern/subr_unit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/subr_unit.c b/sys/kern/subr_unit.c index 7bc0bf0ede4a..22710f546d4f 100644 --- a/sys/kern/subr_unit.c +++ b/sys/kern/subr_unit.c @@ -192,7 +192,7 @@ struct unrb { 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 @@ test_alloc_unr_specific(struct unrhdr *uh, u_int i, char a[]) } static void -usage(char** argv) +usage(char **argv) { printf("%s [-h] [-r REPETITIONS] [-v]\n", argv[0]); } |