mirror of
https://github.com/python/cpython.git
synced 2025-12-15 21:44:50 +00:00
Quiet lint
This commit is contained in:
parent
292bb8ea33
commit
51415a7b3b
1 changed files with 2 additions and 3 deletions
|
|
@ -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 *
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue