From 60202fb5b50f3e56bf82f3424360377a29e25709 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Thu, 3 Oct 2024 10:56:21 +0200 Subject: 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 --- include/sys/select.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/sys/select.h b/include/sys/select.h index c8fbb31..605823b 100644 --- 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); -- cgit v1.3