Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/alpha/stand/netboot kill the last use of NENTS



details:   https://anonhg.NetBSD.org/src/rev/89b6f5aced96
branches:  trunk
changeset: 544168:89b6f5aced96
user:      drochner <drochner%NetBSD.org@localhost>
date:      Thu Mar 13 14:15:58 2003 +0000

description:
kill the last use of NENTS
(We shouldn't use libsa/netif here at all.)

diffstat:

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

diffs (27 lines):

diff -r 9e5a607d4659 -r 89b6f5aced96 sys/arch/alpha/stand/netboot/if_prom.c
--- a/sys/arch/alpha/stand/netboot/if_prom.c    Thu Mar 13 14:05:53 2003 +0000
+++ b/sys/arch/alpha/stand/netboot/if_prom.c    Thu Mar 13 14:15:58 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_prom.c,v 1.18 2003/03/13 13:35:55 drochner Exp $ */
+/* $NetBSD: if_prom.c,v 1.19 2003/03/13 14:15:58 drochner Exp $ */
 
 /*
  * Copyright (c) 1997 Christopher G. Demetriou.  All rights reserved.
@@ -53,8 +53,9 @@
 /*     dif_unit        dif_nsel        dif_stats       dif_private     */
 {      0,              1,              &prom_stats[0], 0,              },
 };
+#define NPROM_IFS (sizeof(prom_ifs) / sizeof(prom_ifs[0]))
 
-struct netif_stats prom_stats[sizeof(prom_ifs) / sizeof(prom_ifs[0])];
+struct netif_stats prom_stats[NPROM_IFS];
 
 struct netbbinfo netbbinfo = {
        0xfeedbabedeadbeef,                     /* magic number */
@@ -220,5 +221,5 @@
        prom_put,               /* netif_put */
        prom_end,               /* netif_end */
        prom_ifs,               /* netif_ifs */
-       NENTS(prom_ifs)         /* netif_nifs */
+       NPROM_IFS               /* netif_nifs */
 };



Home | Main Index | Thread Index | Old Index