diff options
Diffstat (limited to 'sys/arch/hppa64/stand/libsa/dev_hppa64.c')
-rw-r--r-- | sys/arch/hppa64/stand/libsa/dev_hppa64.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/hppa64/stand/libsa/dev_hppa64.c b/sys/arch/hppa64/stand/libsa/dev_hppa64.c index 74d6f51f5e7..8205affc88d 100644 --- a/sys/arch/hppa64/stand/libsa/dev_hppa64.c +++ b/sys/arch/hppa64/stand/libsa/dev_hppa64.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dev_hppa64.c,v 1.3 2010/12/06 18:44:49 jasper Exp $ */ +/* $OpenBSD: dev_hppa64.c,v 1.4 2010/12/06 22:11:01 jasper Exp $ */ /* * Copyright (c) 2005 Michael Shalayeff @@ -33,7 +33,7 @@ const char cdevs[][4] = { "ite", "", "", "", "", "", "", "", "", "", "", "", "" }; -const int ncdevs = nitems(cdevs); +const int ncdevs = NENTS(cdevs); const struct pdc_devs { char name[3]; @@ -69,11 +69,11 @@ devopen(f, fname, file) printf("devopen: "); #endif - for (dp = pdc_devs; dp < &pdc_devs[nitems(pdc_devs)]; dp++) + for (dp = pdc_devs; dp < &pdc_devs[NENTS(pdc_devs)]; dp++) if (!strncmp(fname, dp->name, sizeof(dp->name)-1)) break; - if (dp >= &pdc_devs[nitems(pdc_devs)] || dp->dev_type < 0) + if (dp >= &pdc_devs[NENTS(pdc_devs)] || dp->dev_type < 0) return ENODEV; #ifdef DEBUGBUG if (debug) |