From: Guido van Rossum Date: Fri, 27 Mar 1992 17:23:38 +0000 (+0000) Subject: Quiet lint X-Git-Tag: v0.9.8~449 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=51415a7b3bd101017ceb475d95498ad2c4ba5383;p=thirdparty%2FPython%2Fcpython.git Quiet lint --- diff --git a/Objects/fileobject.c b/Objects/fileobject.c index 8e35e7e493b3..ce18cb3135e1 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 *