Date: Thu, 15 Aug 2019 17:21:38 +0000 (UTC) From: Warner Losh <imp@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r351089 - head/usr.sbin/config Message-ID: <201908151721.x7FHLcCl038376@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: imp Date: Thu Aug 15 17:21:38 2019 New Revision: 351089 URL: https://svnweb.freebsd.org/changeset/base/351089 Log: 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... Modified: head/usr.sbin/config/mkheaders.c Modified: head/usr.sbin/config/mkheaders.c ============================================================================== --- head/usr.sbin/config/mkheaders.c Thu Aug 15 17:15:32 2019 (r351088) +++ head/usr.sbin/config/mkheaders.c Thu Aug 15 17:21:38 2019 (r351089) @@ -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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201908151721.x7FHLcCl038376>