This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
Re: fseek(fp, 0, SEEK_CUR)
- From: Thomas Fitzsimmons <fitzsim at redhat dot com>
- To: WATANABE Hirofumi <eban at os dot rim dot or dot jp>
- Cc: newlib at sources dot redhat dot com
- Date: 24 Jun 2002 12:01:26 -0400
- Subject: Re: fseek(fp, 0, SEEK_CUR)
- References: <4518-Mon24Jun2002121326+0900-eban@os.rim.or.jp>
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