From 0260b8a0b5c95855fe310ecf2d3aeef7edf38c84 Mon Sep 17 00:00:00 2001 From: Pekka Paalanen Date: Thu, 7 Jul 2022 11:29:50 +0300 Subject: [PATCH] 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 --- shared/os-compatibility.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/os-compatibility.c b/shared/os-compatibility.c index f687f92f..78409d15 100644 --- a/shared/os-compatibility.c +++ b/shared/os-compatibility.c @@ -43,7 +43,7 @@ int os_fd_set_cloexec(int fd) { - long flags; + int flags; if (fd == -1) return -1;