From 66772a683deb4e69d87ad609b75c91b96f0aeb52 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Tue, 6 Jun 2023 13:05:41 +0100 Subject: [PATCH] sysdeps: Correct fallback signature of Linux close_range() Linux generally declares syscalls with flags as type int. It's the same ABI, but a slightly different API, and it seems better for our fallback definition to match it exactly. Related to dbus/dbus#453. Signed-off-by: Simon McVittie --- dbus/dbus-sysdeps-unix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbus/dbus-sysdeps-unix.c b/dbus/dbus-sysdeps-unix.c index dbc459ce2..c1c9f182e 100644 --- a/dbus/dbus-sysdeps-unix.c +++ b/dbus/dbus-sysdeps-unix.c @@ -153,7 +153,7 @@ static inline int close_range (unsigned int first, unsigned int last, - unsigned int flags) + int flags) { return syscall (__NR_close_range, first, last, flags); } -- 2.47.3