aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2019-08-15 17:21:38 +0000
committerWarner Losh <imp@FreeBSD.org>2019-08-15 17:21:38 +0000
commitecc7fd09a6675dc1791cc3a8c671b9b976e73e18 (patch)
tree889b27d9f03b206451ae60c64fb0543808ad8e7b
parenta78c1027d7f5f33815d26e97524d72c728f17c38 (diff)
Catch mkheaders.c up to the removal of counted device support in 2005.
mkheaders.c hasn't made headers in ~15 years. Belatedly update the comments to reflect that all it does these days is warn about 'device foo' lines in the config where we don't know what a 'foo' is. Remove extra includes too. These also haven't been needed for 15 years and weren't removed at the time the comment wasn't updated...
Notes
Notes: svn path=/head/; revision=351089
-rw-r--r--usr.sbin/config/mkheaders.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/config/mkheaders.c b/usr.sbin/config/mkheaders.c
index 086a902dc319..62f81553bb5c 100644
--- a/usr.sbin/config/mkheaders.c
+++ b/usr.sbin/config/mkheaders.c
@@ -38,14 +38,14 @@ static const char rcsid[] =
#endif /* not lint */
/*
- * Make all the .h files for the optional entries
+ * This used to generate a bunch of hearders files related to devices when
+ * device counters were supported. Support for that was removed in 2005.
+ * Since then, all we've done is to report unknown devices in this file.
+ * It's kept its historical name, despite no longer generating headers.
*/
-#include <ctype.h>
#include <err.h>
#include <stdio.h>
-#include <string.h>
-#include <sys/param.h>
#include "config.h"
#include "y.tab.h"