Module Name: src Committed By: rillig Date: Sun Sep 12 15:22:05 UTC 2021
Modified Files: src/sys/sys: bitops.h Log Message: 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] To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15 src/sys/sys/bitops.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/sys/bitops.h diff -u src/sys/sys/bitops.h:1.14 src/sys/sys/bitops.h:1.15 --- src/sys/sys/bitops.h:1.14 Thu Mar 8 20:32:32 2018 +++ src/sys/sys/bitops.h Sun Sep 12 15:22:05 2021 @@ -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 _ #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 */