summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-05-25 04:58:02 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-05-25 04:58:02 +0000
commit45c61f40b23b14e97428206e1b813eb813526e6f (patch)
treebbffa6043ed1e8b6a501d23c3b4874ae3390ddd8 /io.c
parent369fe1e8394b494c78d56aedfe6b0b809d7d1c10 (diff)
remove unused variables
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@222 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/io.c b/io.c
index 0dda83fbab..fe4b87bfa5 100644
--- a/io.c
+++ b/io.c
@@ -357,7 +357,6 @@ read_all(port)
{
OpenFile *fptr;
VALUE str = Qnil;
- char *buf;
struct stat st;
int siz = BUFSIZ;
int bytes = 0;
@@ -1578,7 +1577,6 @@ obj_display(argc, argv, self)
VALUE self;
{
VALUE out;
- VALUE str;
rb_scan_args(argc, argv, "01", &out);
if (NIL_P(out)) {
@@ -1611,7 +1609,7 @@ io_stdio_set(val, id, var)
ID id;
VALUE *var;
{
- OpenFile *fptr, *fptr2;
+ OpenFile *fptr;
int fd;
if (TYPE(val) != T_FILE) {
@@ -2094,7 +2092,8 @@ io_ctl(io, req, arg, io_p)
#if !defined(MSDOS) && !defined(__human68k__)
int cmd = NUM2INT(req);
OpenFile *fptr;
- int len, fd;
+ int len = 0;
+ int fd;
long narg = 0;
int retval;