From: Simon McVittie Date: Tue, 6 Jun 2023 12:05:41 +0000 (+0100) Subject: sysdeps: Correct fallback signature of Linux close_range() X-Git-Tag: dbus-1.15.8~39^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=66772a683deb4e69d87ad609b75c91b96f0aeb52;p=thirdparty%2Fdbus.git 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 --- 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); }