fseek(fp, 0, SEEK_CUR)
Thomas Fitzsimmons
fitzsim@redhat.com
Mon Jun 24 09:01:00 GMT 2002
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
More information about the Newlib
mailing list