aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--io.c3
2 files changed, 5 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 0917e017f5..d73edbe1e6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
* io.c (io_unread): adhoc workaround for non-binary mode of some DOSish
diff --git a/io.c b/io.c
index d398b23922..cb0a7b2853 100644
--- a/io.c
+++ b/io.c
@@ -294,9 +294,8 @@ io_unread(rb_io_t *fptr)
r = lseek(fptr->fd, -len, SEEK_CUR);
}
else
-#else
- r = lseek(fptr->fd, -fptr->rbuf_len, SEEK_CUR);
#endif
+ r = lseek(fptr->fd, -fptr->rbuf_len, SEEK_CUR);
if (r < 0) {
if (errno == ESPIPE)
fptr->mode |= FMODE_DUPLEX;