From owner-cvs-src@FreeBSD.ORG Fri Nov 25 22:25:35 2005 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7E91016A41F; Fri, 25 Nov 2005 22:25:35 +0000 (GMT) (envelope-from ru@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2DB7843D55; Fri, 25 Nov 2005 22:25:35 +0000 (GMT) (envelope-from ru@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id jAPMPZNZ098915; Fri, 25 Nov 2005 22:25:35 GMT (envelope-from ru@repoman.freebsd.org) Received: (from ru@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id jAPMPZ3b098914; Fri, 25 Nov 2005 22:25:35 GMT (envelope-from ru) Message-Id: <200511252225.jAPMPZ3b098914@repoman.freebsd.org> From: Ruslan Ermilov Date: Fri, 25 Nov 2005 22:25:35 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/usr.sbin/config config.h mkheaders.c mkmakefile.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Nov 2005 22:25:35 -0000 ru 2005-11-25 22:25:35 UTC FreeBSD src repository Modified files: usr.sbin/config config.h mkheaders.c mkmakefile.c Log: Clean some code that became obfuscated over the years: Don't keep duplicate files in the files list just to mark the device as "known" later. XXX: Since the device list isn't unique (there can be two "device foo" directives, as this the case with LINT+DEFAULTS), we have to traverse it all to mark all copies of the same device as "used", but this is not worse than it was. Revision Changes Path 1.58 +0 -3 src/usr.sbin/config/config.h 1.31 +0 -13 src/usr.sbin/config/mkheaders.c 1.82 +19 -43 src/usr.sbin/config/mkmakefile.c