sys/bitops.h: fix __BITMAP_ZERO for non-GCC compilers

Running 'make -C sbin/cgdconfig lint' failed with:

cgdconfig.c(1253): error: left operand of '->' must be pointer to struct
    or union, not 'struct <unnamed>' [104]
This commit is contained in:
rillig 2021-09-12 15:22:05 +00:00
parent 0d4f628f26
commit a77734b2e6
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: bitops.h,v 1.14 2018/03/08 20:32:32 christos Exp $ */
/* $NetBSD: bitops.h,v 1.15 2021/09/12 15:22:05 rillig Exp $ */
/*-
* Copyright (c) 2007, 2010 The NetBSD Foundation, Inc.
@ -321,7 +321,7 @@ fast_remainder32(uint32_t _v, uint32_t _div, uint32_t _m, uint8_t _s1,
#else
#define __BITMAP_ZERO(__v) do { \
size_t __i; \
for (__i = 0; __i < __arraycount(__v->_b); __i++) \
for (__i = 0; __i < __arraycount((__v)->_b); __i++) \
(__v)->_b[__i] = 0; \
} while (/* CONSTCOND */ 0)
#endif /* GCC 2.95 */