=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/netstat/mbuf.c,v retrieving revision 1.44 retrieving revision 1.45 diff -c -r1.44 -r1.45 *** src/usr.bin/netstat/mbuf.c 2023/07/07 14:17:35 1.44 --- src/usr.bin/netstat/mbuf.c 2023/07/16 03:01:31 1.45 *************** *** 1,4 **** ! /* $OpenBSD: mbuf.c,v 1.44 2023/07/07 14:17:35 yasuoka Exp $ */ /* $NetBSD: mbuf.c,v 1.9 1996/05/07 02:55:03 thorpej Exp $ */ /* --- 1,4 ---- ! /* $OpenBSD: mbuf.c,v 1.45 2023/07/16 03:01:31 yasuoka Exp $ */ /* $NetBSD: mbuf.c,v 1.9 1996/05/07 02:55:03 thorpej Exp $ */ /* *************** *** 79,85 **** }; int nmbtypes = sizeof(mbstat.m_mtypes) / sizeof(u_long); ! bool seen[256]; /* "have we seen this type yet?" */ /* * Print mbuf statistics. --- 79,85 ---- }; int nmbtypes = sizeof(mbstat.m_mtypes) / sizeof(u_long); ! bool seen[MBSTAT_COUNT]; /* "have we seen this type yet?" */ /* * Print mbuf statistics. *************** *** 93,99 **** struct mbtypes *mp; size_t size; ! if (nmbtypes != 256) { fprintf(stderr, "%s: unexpected change to mbstat; check source\n", __progname); --- 93,99 ---- struct mbtypes *mp; size_t size; ! if (nmbtypes != MBSTAT_COUNT) { fprintf(stderr, "%s: unexpected change to mbstat; check source\n", __progname);