mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* io.c (io_unread): fix typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14776 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
57bb055c93
commit
b3c2e224d3
2 changed files with 5 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
Sat Dec 29 03:10:12 2007 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
|
* io.c (io_unread): fix typo.
|
||||||
|
|
||||||
Sat Dec 29 02:18:45 2007 NAKAMURA Usaku <usa@ruby-lang.org>
|
Sat Dec 29 02:18:45 2007 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
* io.c (io_unread): adhoc workaround for non-binary mode of some DOSish
|
* io.c (io_unread): adhoc workaround for non-binary mode of some DOSish
|
||||||
|
|
3
io.c
3
io.c
|
@ -294,9 +294,8 @@ io_unread(rb_io_t *fptr)
|
||||||
r = lseek(fptr->fd, -len, SEEK_CUR);
|
r = lseek(fptr->fd, -len, SEEK_CUR);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
#else
|
|
||||||
r = lseek(fptr->fd, -fptr->rbuf_len, SEEK_CUR);
|
|
||||||
#endif
|
#endif
|
||||||
|
r = lseek(fptr->fd, -fptr->rbuf_len, SEEK_CUR);
|
||||||
if (r < 0) {
|
if (r < 0) {
|
||||||
if (errno == ESPIPE)
|
if (errno == ESPIPE)
|
||||||
fptr->mode |= FMODE_DUPLEX;
|
fptr->mode |= FMODE_DUPLEX;
|
||||||
|
|
Loading…
Add table
Reference in a new issue