Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sbmips/stand/netboot cope with removal of this sick...



details:   https://anonhg.NetBSD.org/src/rev/c50edb92f7c3
branches:  trunk
changeset: 544166:c50edb92f7c3
user:      drochner <drochner%NetBSD.org@localhost>
date:      Thu Mar 13 13:59:11 2003 +0000

description:
cope with removal of this sick NENTS macro from libsa/netif.h

diffstat:

 sys/arch/sbmips/stand/netboot/if_cfe.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r 5dafd3b6c6ab -r c50edb92f7c3 sys/arch/sbmips/stand/netboot/if_cfe.c
--- a/sys/arch/sbmips/stand/netboot/if_cfe.c    Thu Mar 13 13:57:01 2003 +0000
+++ b/sys/arch/sbmips/stand/netboot/if_cfe.c    Thu Mar 13 13:59:11 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_cfe.c,v 1.1 2002/11/09 06:20:42 cgd Exp $ */
+/* $NetBSD: if_cfe.c,v 1.2 2003/03/13 13:59:11 drochner Exp $ */
 
 /*
  * Copyright (c) 1997 Christopher G. Demetriou.  All rights reserved.
@@ -61,8 +61,9 @@
 /*     dif_unit        dif_nsel        dif_stats       dif_private     */
 {      0,              1,              &cfenet_stats[0],       0,              },
 };
+#define NCFENET_IFS (sizeof(cfenet_ifs) / sizeof(cfenet_ifs[0]))
 
-struct netif_stats cfenet_stats[NENTS(cfenet_ifs)];
+struct netif_stats cfenet_stats[NCFENET_IFS];
 
 struct netif_driver prom_netif_driver = {
        "cfe",                  /* netif_bname */
@@ -73,7 +74,7 @@
        cfenet_put,             /* netif_put */
        cfenet_end,             /* netif_end */
        cfenet_ifs,             /* netif_ifs */
-       NENTS(cfenet_ifs)               /* netif_nifs */
+       NCFENET_IFS             /* netif_nifs */
 };
 
 int



Home | Main Index | Thread Index | Old Index