diff options
author | Guido van Rossum <guido@python.org> | 1992-03-27 17:23:38 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1992-03-27 17:23:38 (GMT) |
commit | 51415a7b3bd101017ceb475d95498ad2c4ba5383 (patch) | |
tree | 30b3541aa6d54a1cce80dc69ff0ecc67bdb8f980 /Objects/fileobject.c | |
parent | 292bb8ea33cc1b297a77c0705b33e34bb0f013e3 (diff) | |
download | cpython-51415a7b3bd101017ceb475d95498ad2c4ba5383.zip cpython-51415a7b3bd101017ceb475d95498ad2c4ba5383.tar.gz cpython-51415a7b3bd101017ceb475d95498ad2c4ba5383.tar.bz2 |
Quiet lint
Diffstat (limited to 'Objects/fileobject.c')
-rw-r--r-- | Objects/fileobject.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Objects/fileobject.c b/Objects/fileobject.c index 8e35e7e..ce18cb3 100644 --- a/Objects/fileobject.c +++ b/Objects/fileobject.c @@ -83,7 +83,6 @@ newfileobject(name, mode) { extern int fclose PROTO((FILE *)); fileobject *f; - FILE *fp; f = (fileobject *) newopenfileobject((FILE *)NULL, name, mode, fclose); if (f == NULL) return NULL; @@ -250,7 +249,7 @@ file_isatty(f, args) err_badarg(); return NULL; } - return newintobject((long)isatty(fileno(f->f_fp))); + return newintobject((long)isatty((int)fileno(f->f_fp))); } static object * @@ -403,7 +402,7 @@ file_readline(f, args) } } - return getline((object *)f, n); + return getline(f, n); } static object * |