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>
dev
Pekka Paalanen 2 years ago committed by Pekka Paalanen
parent 77cf8cb006
commit 0260b8a0b5
  1. 2
      shared/os-compatibility.c

@ -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…
Cancel
Save