commit 60202fb5b50f3e56bf82f3424360377a29e25709
parent 63f1b1c7629484370ebe1868da5af4008ba877e3
Author: Natanael Copa <ncopa@alpinelinux.org>
Date: Thu, 3 Oct 2024 10:56:21 +0200
Use const fd_set for FD_ISSET
This fixes invalid conversion errors when the fd_set is defined as
const.
fixes https://github.com/jvoisin/fortify-headers/issues/66
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/sys/select.h b/include/sys/select.h
@@ -50,7 +50,7 @@ _STI void __fortify_FD_SET(int __f, fd_set * _FORTIFY_POS0 __s)
FD_SET(__f, __s);
}
-_STI int __fortify_FD_ISSET(int __f, fd_set * _FORTIFY_POS0 __s)
+_STI int __fortify_FD_ISSET(int __f, const fd_set * _FORTIFY_POS0 __s)
{
__fh_size_t __b = __fh_bos(__s, 0);