diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2001-01-29 06:16:15 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2001-01-29 06:16:15 +0000 |
commit | da04463b05aceaa4c23b2f57b7e090c72655f21e (patch) | |
tree | 6f4a0b462501980beb131a834e78bbb33ad0d47c /sys/dev/isa | |
parent | e63a1f506165494665fac74c6808682d612a3169 (diff) |
even shorter
Diffstat (limited to 'sys/dev/isa')
-rw-r--r-- | sys/dev/isa/devlist2h.awk | 3 | ||||
-rw-r--r-- | sys/dev/isa/isapnp.c | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/sys/dev/isa/devlist2h.awk b/sys/dev/isa/devlist2h.awk index bf9001226f3..d7eb083b1c5 100644 --- a/sys/dev/isa/devlist2h.awk +++ b/sys/dev/isa/devlist2h.awk @@ -1,5 +1,5 @@ #! /usr/bin/awk -f -# $OpenBSD: devlist2h.awk,v 1.5 2001/01/29 05:47:03 mickey Exp $ +# $OpenBSD: devlist2h.awk,v 1.6 2001/01/29 06:16:14 mickey Exp $ # $NetBSD: devlist2h.awk,v 1.2 1996/01/22 21:08:09 cgd Exp $ # # Copyright (c) 1995, 1996 Christopher G. Demetriou @@ -83,6 +83,5 @@ END { printf("\t/* %s */", products[i, 3]) > dfile printf("\n") > dfile } - printf("\t{ {""}, {""}, }\n") > dfile printf("};\n") > dfile } diff --git a/sys/dev/isa/isapnp.c b/sys/dev/isa/isapnp.c index 4568fc2b16a..ee26920286c 100644 --- a/sys/dev/isa/isapnp.c +++ b/sys/dev/isa/isapnp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: isapnp.c,v 1.29 2001/01/29 05:51:00 mickey Exp $ */ +/* $OpenBSD: isapnp.c,v 1.30 2001/01/29 06:16:14 mickey Exp $ */ /* $NetBSD: isapnp.c,v 1.9.4.3 1997/10/29 00:40:43 thorpej Exp $ */ /* @@ -610,7 +610,7 @@ isapnp_submatch(parent, match, aux) const char *dname; int i; - for (i = 0; isapnp_knowndevs[i].pnpid[0]; i++) { + for (i = 0; i < sizeof(isapnp_knowndevs)/sizeof(isapnp_knowndevs[0]); i++) { dname = NULL; if (strcmp(isapnp_knowndevs[i].pnpid, ipa->ipa_devlogic) == 0) |