summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/dev/onewire/devlist2h.awk9
-rw-r--r--sys/dev/onewire/onewire_subr.c6
2 files changed, 9 insertions, 6 deletions
diff --git a/sys/dev/onewire/devlist2h.awk b/sys/dev/onewire/devlist2h.awk
index bec5de1159b..5690f104633 100644
--- a/sys/dev/onewire/devlist2h.awk
+++ b/sys/dev/onewire/devlist2h.awk
@@ -1,4 +1,4 @@
-# $OpenBSD: devlist2h.awk,v 1.3 2006/03/10 14:36:32 grange Exp $
+# $OpenBSD: devlist2h.awk,v 1.4 2007/02/28 22:31:32 deraadt Exp $
#
# Copyright (c) 2006 Alexander Yurchenko <grange@openbsd.org>
@@ -28,9 +28,16 @@ NR == 1 {
printf("/*\t\$OpenBSD\$\t*/\n\n" \
"/*\n * THIS FILE AUTOMATICALLY GENERATED. DO NOT EDIT.\n" \
" *\n * Generated from:\n *\t%s\n */\n\n", VERSION) > hfile
+
printf("/*\t\$OpenBSD\$\t*/\n\n" \
"/*\n * THIS FILE AUTOMATICALLY GENERATED. DO NOT EDIT.\n" \
" *\n * Generated from:\n *\t%s\n */\n\n", VERSION) > dfile
+
+ printf("struct onewire_family {\n") > dfile
+ printf("\tint\t\tof_type;\n") > dfile
+ printf("\tconst char\t*of_name;\n") > dfile
+ printf("};\n\n") > dfile
+
printf("static const struct onewire_family " \
"onewire_famtab[] = {\n") > dfile
}
diff --git a/sys/dev/onewire/onewire_subr.c b/sys/dev/onewire/onewire_subr.c
index f20e4913914..ccb24a0868f 100644
--- a/sys/dev/onewire/onewire_subr.c
+++ b/sys/dev/onewire/onewire_subr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: onewire_subr.c,v 1.1 2006/03/04 16:27:03 grange Exp $ */
+/* $OpenBSD: onewire_subr.c,v 1.2 2007/02/28 22:31:32 deraadt Exp $ */
/*
* Copyright (c) 2006 Alexander Yurchenko <grange@openbsd.org>
@@ -29,10 +29,6 @@
#include <dev/onewire/onewirevar.h>
#ifdef ONEWIREVERBOSE
-struct onewire_family {
- int of_type;
- const char * of_name;
-};
#include <dev/onewire/onewiredevs_data.h>
#endif