Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Mar 2004 15:56:07 -0500
From:      John Baldwin <jhb@FreeBSD.org>
To:        Doug Barton <dougb@FreeBSD.org>
Cc:        cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/etc/rc.d mixer
Message-ID:  <200403291155.43206.jhb@FreeBSD.org>
In-Reply-To: <200403270926.i2R9QMiP083177@repoman.freebsd.org>
References:  <200403270926.i2R9QMiP083177@repoman.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Saturday 27 March 2004 04:26 am, Doug Barton wrote:
> dougb       2004/03/27 01:26:22 PST
>
>   FreeBSD src repository
>
>   Modified files:
>     etc/rc.d             mixer
>   Log:
>   A few small cleanups:
>
>   1. Add the shutdown keyword so that the script is run at shutdown time,
>   and the mixer* files are saved.

Huh, it seemed to work in my testing w/o this change.  Maybe I botched 
something.

>   2. Twiddle whitespace.

Style(9) mandates blank lines at the start of functions with no local 
variables, so that's why I did that.

>   3. Remove an unecessary function, and therefore collapse one variable.

Only unnecessary if you don't value abstraction. :)  Now if you want to ever 
change the names of the mixer saved files due to a conflict or some such, you 
have to change it in multiple places rather than just one.  I also did post 
this script for review on @arch before it was committed, btw.

-- 
John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve"  =  http://www.FreeBSD.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200403291155.43206.jhb>