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:
parent
0d4f628f26
commit
a77734b2e6
|
@ -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.
|
* 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
|
#else
|
||||||
#define __BITMAP_ZERO(__v) do { \
|
#define __BITMAP_ZERO(__v) do { \
|
||||||
size_t __i; \
|
size_t __i; \
|
||||||
for (__i = 0; __i < __arraycount(__v->_b); __i++) \
|
for (__i = 0; __i < __arraycount((__v)->_b); __i++) \
|
||||||
(__v)->_b[__i] = 0; \
|
(__v)->_b[__i] = 0; \
|
||||||
} while (/* CONSTCOND */ 0)
|
} while (/* CONSTCOND */ 0)
|
||||||
#endif /* GCC 2.95 */
|
#endif /* GCC 2.95 */
|
||||||
|
|
Loading…
Reference in New Issue