From da04463b05aceaa4c23b2f57b7e090c72655f21e Mon Sep 17 00:00:00 2001 From: Michael Shalayeff Date: Mon, 29 Jan 2001 06:16:15 +0000 Subject: even shorter --- sys/dev/isa/devlist2h.awk | 3 +-- sys/dev/isa/isapnp.c | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'sys/dev/isa') 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) -- cgit v1.2.3