mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
bpo-41056: Use the fildes converter for fd to please Coverity. (GH-21011)
There are a bunch of other fd: int uses in this file, I expect many if not all of them would be better off using the fildes converter. This particular one was flagged by Coverity as it presumably flags fpathconf as not accepting negative fds. I'd expect the other fd's to have been flagged as well otherwise. I'm marking this one as skip news as it really is a no-op.
This commit is contained in:
parent
eb0d5c38de
commit
3ccb96c978
3 changed files with 5 additions and 5 deletions
|
@ -10988,7 +10988,7 @@ conv_path_confname(PyObject *arg, int *valuep)
|
|||
/*[clinic input]
|
||||
os.fpathconf -> long
|
||||
|
||||
fd: int
|
||||
fd: fildes
|
||||
name: path_confname
|
||||
/
|
||||
|
||||
|
@ -10999,7 +10999,7 @@ If there is no limit, return -1.
|
|||
|
||||
static long
|
||||
os_fpathconf_impl(PyObject *module, int fd, int name)
|
||||
/*[clinic end generated code: output=d5b7042425fc3e21 input=5942a024d3777810]*/
|
||||
/*[clinic end generated code: output=d5b7042425fc3e21 input=5b8d2471cfaae186]*/
|
||||
{
|
||||
long limit;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue