Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net s/nitems/__arraycount/
details: https://anonhg.NetBSD.org/src/rev/5c349a4332ad
branches: trunk
changeset: 982219:5c349a4332ad
user: yamaguchi <yamaguchi%NetBSD.org@localhost>
date: Mon Apr 05 06:56:47 2021 +0000
description:
s/nitems/__arraycount/
diffstat:
sys/net/toeplitz.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r d80c7a1abf81 -r 5c349a4332ad sys/net/toeplitz.c
--- a/sys/net/toeplitz.c Mon Apr 05 06:53:45 2021 +0000
+++ b/sys/net/toeplitz.c Mon Apr 05 06:56:47 2021 +0000
@@ -165,7 +165,7 @@
uint32_t n32 = 0;
size_t i;
- for (i = 0; i < nitems(faddr6->s6_addr32); i++)
+ for (i = 0; i < __arraycount(faddr6->s6_addr32); i++)
n32 ^= faddr6->s6_addr32[i] ^ laddr6->s6_addr32[i];
return (stoeplitz_hash_n32(scache, n32));
@@ -179,7 +179,7 @@
uint32_t n32 = 0;
size_t i;
- for (i = 0; i < nitems(faddr6->s6_addr32); i++)
+ for (i = 0; i < __arraycount(faddr6->s6_addr32); i++)
n32 ^= faddr6->s6_addr32[i] ^ laddr6->s6_addr32[i];
n32 ^= fport ^ lport;
Home |
Main Index |
Thread Index |
Old Index