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/ee5d49f13927
branches:  trunk
changeset: 960988:ee5d49f13927
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 a0b7f241aedf -r ee5d49f13927 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