Browse Source

2002-06-24 WATANABE Hirofumi <eban@os.rim.or.jp>

* libc/stdio/fseek.c (fseek): Fix braces.
unlabeled-1.50.2
Thomas Fitzsimmons 24 years ago
parent
commit
30a0616840
  1. 4
      newlib/ChangeLog
  2. 6
      newlib/libc/stdio/fseek.c

4
newlib/ChangeLog

@ -1,3 +1,7 @@
2002-06-24 WATANABE Hirofumi <eban@os.rim.or.jp>
* libc/stdio/fseek.c (fseek): Fix braces.
2002-06-21 Corinna Vinschen <corinna@vinschen.de> 2002-06-21 Corinna Vinschen <corinna@vinschen.de>
* libc/time/strftime.c (strftime): Add %e format specifier. * libc/time/strftime.c (strftime): Add %e format specifier.

6
newlib/libc/stdio/fseek.c

@ -141,8 +141,10 @@ fseek (fp, offset, whence)
{ {
curoff = (*seekfn) (fp->_cookie, (fpos_t) 0, SEEK_CUR); curoff = (*seekfn) (fp->_cookie, (fpos_t) 0, SEEK_CUR);
if (curoff == -1L) if (curoff == -1L)
_funlockfile(fp); {
return EOF; _funlockfile(fp);
return EOF;
}
} }
if (fp->_flags & __SRD) if (fp->_flags & __SRD)
{ {

Loading…
Cancel
Save