diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2001-01-29 05:47:04 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2001-01-29 05:47:04 +0000 |
commit | 6bb241f1b2ad8c2939e90eb5662ae7b5a5ee90dc (patch) | |
tree | dbcec8247349b60d92b49802a8b908af08b6dd68 /sys/dev/isa | |
parent | dea4b422d97fb1810abb900ba31641707fb63a7d (diff) |
size reducage and constify
Diffstat (limited to 'sys/dev/isa')
-rw-r--r-- | sys/dev/isa/devlist2h.awk | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/isa/devlist2h.awk b/sys/dev/isa/devlist2h.awk index 0b1cfbfd2c6..bf9001226f3 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.4 1998/12/28 09:15:16 hugh Exp $ +# $OpenBSD: devlist2h.awk,v 1.5 2001/01/29 05:47:03 mickey Exp $ # $NetBSD: devlist2h.awk,v 1.2 1996/01/22 21:08:09 cgd Exp $ # # Copyright (c) 1995, 1996 Christopher G. Demetriou @@ -74,15 +74,15 @@ END { printf("\n") > dfile - printf("struct isapnp_knowndev isapnp_knowndevs[] = {\n") > dfile + printf("const struct isapnp_knowndev isapnp_knowndevs[] = {\n") > dfile for (i = 1; i <= nproducts; i++) { - printf("\t{ \"%s\", \"%s\" },", + printf("\t{ {\"%s\"}, {\"%s\"} },", products[i, 2], products[i, 1]) \ > dfile if (products[i, 3]) printf("\t/* %s */", products[i, 3]) > dfile printf("\n") > dfile } - printf("\t{ NULL, NULL, }\n") > dfile + printf("\t{ {""}, {""}, }\n") > dfile printf("};\n") > dfile } |