Date: Sun, 15 Jul 2001 12:12:33 -0400 (EDT) From: Mike Heffner <mheffner@novacoxmail.com> To: Dima Dorfman <dima@unixfreak.org> Cc: audit@freebsd.org Subject: RE: queue(3) patch for config(8) Message-ID: <XFMail.20010715121233.mheffner@novacoxmail.com> In-Reply-To: <20010715113642.C42CC3E2F@bazooka.unixfreak.org>
next in thread | previous in thread | raw e-mail | index | archive | help
This message is in MIME format --_=XFMail.1.5.0.FreeBSD:20010715121233:57103=_ Content-Type: text/plain; charset=us-ascii On 15-Jul-2001 Dima Dorfman wrote: | Attached is a patch which converts config(8) to use the queue(3) API. | Please review. I only did a quick glance at it, but it looks alright. | | Index: mkheaders.c | =================================================================== | RCS file: /stl/src/FreeBSD/src/usr.sbin/config/mkheaders.c,v | retrieving revision 1.22 | diff -u -r1.22 mkheaders.c | --- mkheaders.c 2001/01/31 11:18:49 1.22 | +++ mkheaders.c 2001/07/15 11:35:25 ... | @@ -97,7 +98,8 @@ | * and "hicount" will be the highest unit declared. do_header() | * must use this higher of these values. | */ | - for (hicount = count = 0, dp = dtab; dp != 0; dp = dp->d_next) { | + hicount = count = 0; | + TAILQ_FOREACH(dp, &dtab_head, d_list) { | if (eq(dp->d_name, dev)) { | count = | dp->d_count != UNKNOWN ? dp->d_count : 1; `hicount' can probably be axed altogether, it appears to have lost its use in r1.16. Mike -- Mike Heffner <mheffner@[acm.]vt.edu> Fredericksburg, VA <mikeh@FreeBSD.org> --_=XFMail.1.5.0.FreeBSD:20010715121233:57103=_ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE7UcDxFokZQs3sv5kRAm5PAJ9F2/GjiNsWIhGoBbc8dNVcujIAPACghX/u 0GHkLHSkuKzqQTpR76BhGic= =iL/U -----END PGP SIGNATURE----- --_=XFMail.1.5.0.FreeBSD:20010715121233:57103=_-- End of MIME message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-audit" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.20010715121233.mheffner>