git: 042ec55f9df7 - main - kern/subr_unit.c: some style
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 29 May 2023 22:11:18 UTC
The branch main has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=042ec55f9df769697feb6cee472959d001a0f033
commit 042ec55f9df769697feb6cee472959d001a0f033
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2023-05-12 22:37:35 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2023-05-29 22:10:35 +0000
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
---
sys/kern/subr_unit.c | 4 ++--
1 file 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]);
}