Page MenuHomeFreeBSD

D40089.diff
No OneTemporary

D40089.diff

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]);
}

File Metadata

Mime Type
text/plain
Expires
Wed, Feb 5, 11:21 AM (20 h, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16473275
Default Alt Text
D40089.diff (573 B)

Event Timeline