shared: fcntl uses int, not long
fcntl(2) manual says the return type is int, and that F_SETFD takes an int. So use int. Noticed by code inspection. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
This commit is contained in:
committed by
Pekka Paalanen
parent
77cf8cb006
commit
0260b8a0b5
@@ -43,7 +43,7 @@
|
|||||||
int
|
int
|
||||||
os_fd_set_cloexec(int fd)
|
os_fd_set_cloexec(int fd)
|
||||||
{
|
{
|
||||||
long flags;
|
int flags;
|
||||||
|
|
||||||
if (fd == -1)
|
if (fd == -1)
|
||||||
return -1;
|
return -1;
|
||||||
|
|||||||
Reference in New Issue
Block a user