]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
sysdeps: Correct fallback signature of Linux close_range() 411/head
authorSimon McVittie <smcv@collabora.com>
Tue, 6 Jun 2023 12:05:41 +0000 (13:05 +0100)
committerSimon McVittie <smcv@collabora.com>
Tue, 6 Jun 2023 17:30:36 +0000 (17:30 +0000)
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 <smcv@collabora.com>
dbus/dbus-sysdeps-unix.c

index dbc459ce2eadb734c835751084c26c636cf93e32..c1c9f182ed6262b5b7d9cef40558e87e414cca2b 100644 (file)
 static inline int
 close_range (unsigned int first,
              unsigned int last,
-             unsigned int flags)
+             int flags)
 {
   return syscall (__NR_close_range, first, last, flags);
 }