Index: bitstring.h =================================================================== RCS file: /private/FreeBSD/src/sys/sys/bitstring.h,v retrieving revision 1.3 diff -u -p -r1.3 bitstring.h --- bitstring.h 13 Jun 2003 19:40:13 -0000 1.3 +++ bitstring.h 15 Mar 2004 14:34:03 -0000 @@ -56,8 +56,14 @@ typedef unsigned char bitstr_t; (((nbits) + 7) >> 3) /* allocate a bitstring */ +#ifdef _KERNEL +#define bit_alloc(nbits, type, flags) \ + (bitstr_t *)malloc((size_t)bitstr_size(nbits) * sizeof(bitstr_t), \ + (type), (flags) | M_ZERO) +#else #define bit_alloc(nbits) \ (bitstr_t *)calloc((size_t)bitstr_size(nbits), sizeof(bitstr_t)) +#endif /* allocate a bitstring on the stack */ #define bit_decl(name, nbits) \