<<< Date Index >>>     <<< Thread Index >>>

Re: [PATCH] Clean up mx.c: init stat structs to zero



On Monday, 09 July 2007 at 10:06, Aron Griffis wrote:
> # HG changeset patch
> # User Aron Griffis <agriffis@xxxxxxxxx>
> # Date 1183988719 14400
> # Branch HEAD
> # Node ID 1d6b7eee167c081494f8c6962241035adc7dc03f
> # Parent  8d68a4432571f5d47a19792f899fd5fa0d7cb58e
> Clean up mx.c: init stat structs to zero
> 
> prev_sb.st_size was initialized to zero if USE_FCNTL but not if
> USE_FLOCK.  Silence the gcc warning for both cases by zeroing the stat
> structures on the stack.
> 
> Other minor cleanups:
> - clean up some whitespace
> - convert return (foo) to return foo
> - return r at the bottom of the function instead of testing values and
>   returning them explicitly
> - add vim modeline
> 
> Signed-off-by: Aron Griffis <agriffis@xxxxxxxxx>

Applied, thanks.

Attachment: pgpCTmgIjjM7P.pgp
Description: PGP signature