Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Jun 2023 08:36:01 GMT
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: be455be5099d - stable/13 - kern/subr_unit.c: some style
Message-ID:  <202306050836.3558a1cK024353@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=be455be5099db29e6dae645fc221d331367ae38f

commit be455be5099db29e6dae645fc221d331367ae38f
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2023-05-12 22:37:35 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2023-06-05 08:35:00 +0000

    kern/subr_unit.c: some style
    
    (cherry picked from commit 042ec55f9df769697feb6cee472959d001a0f033)
---
 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 8e5eb94711c3..fd9425e95dd5 100644
--- a/sys/kern/subr_unit.c
+++ b/sys/kern/subr_unit.c
@@ -205,7 +205,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
@@ -1024,7 +1024,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]);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202306050836.3558a1cK024353>