This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: fseek(fp, 0, SEEK_CUR)


On Sun, 2002-06-23 at 23:13, WATANABE Hirofumi wrote:
> Hi,
> 
> Braces are required of multi-line statements.
> 

Applied.  Thanks.

> Index: libc/stdio/fseek.c
> ===================================================================
> RCS file: /cvs/src/src/newlib/libc/stdio/fseek.c,v
> retrieving revision 1.3
> diff -u -r1.3 fseek.c
> --- libc/stdio/fseek.c	8 May 2002 00:12:48 -0000	1.3
> +++ libc/stdio/fseek.c	24 Jun 2002 02:52:41 -0000
> @@ -141,8 +141,10 @@
>  	{
>  	  curoff = (*seekfn) (fp->_cookie, (fpos_t) 0, SEEK_CUR);
>  	  if (curoff == -1L)
> -            _funlockfile(fp);
> -	    return EOF;
> +	    {
> +	      _funlockfile(fp);
> +	      return EOF;
> +	    }
>  	}
>        if (fp->_flags & __SRD)
>  	{
-- 
Thomas Fitzsimmons
Red Hat Canada Limited        e-mail: fitzsim@redhat.com
2323 Yonge Street, Suite 300
Toronto, ON M4P2C9


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]