mirror of
https://gitlab.freedesktop.org/wayland/weston
synced 2024-10-15 21:47:29 +00:00
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:
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;
|
||||||
|
|
Loading…
Reference in a new issue