Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Dec 2001 15:17:00 -0600
From:      Alfred Perlstein <bright@mu.org>
To:        Dag-Erling Smorgrav <des@ofug.org>
Cc:        Peter Wemm <peter@FreeBSD.org>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/kern vfs_subr.c
Message-ID:  <20011228151700.Z55891@elvis.mu.org>
In-Reply-To: <xzp4rmbnnha.fsf@flood.ping.uio.no>; from des@ofug.org on Fri, Dec 28, 2001 at 08:39:13PM %2B0100
References:  <200112190135.fBJ1ZIS15042@freefall.freebsd.org> <xzp4rmbnnha.fsf@flood.ping.uio.no>

next in thread | previous in thread | raw e-mail | index | archive | help
* Dag-Erling Smorgrav <des@ofug.org> [011228 13:40] wrote:
> Peter Wemm <peter@FreeBSD.org> writes:
> >   Log:
> >   Do not initialize static/global variables to 0. Use bss instead of
> >   taking up space in the data section.
> 
> des@des /sec/freebsd/current/src% find sys -type f | xargs grep -H '^[a-z].*= *0;'

find sys -type f -name "*.c" | 
while read i ; do
	sed 's/\(^[a-z].*\).*=.*0;/\1;/' < $i > $i.new
	mv $i.new $i
done
cvs commit -m "Peter made me do it"

-Alfred :)

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




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