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:
Pekka Paalanen 2022-07-07 11:29:50 +03:00 committed by Pekka Paalanen
parent 77cf8cb006
commit 0260b8a0b5
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@
int
os_fd_set_cloexec(int fd)
{
long flags;
int flags;
if (fd == -1)
return -1;