diff options
| author | Natanael Copa | 2024-10-03 10:56:21 +0200 |
|---|---|---|
| committer | Julien Voisin | 2024-10-03 18:22:48 +0000 |
| commit | 60202fb5b50f3e56bf82f3424360377a29e25709 (patch) | |
| tree | f781d228452cc28ffe4fc0cde10adae629f7a880 /include/sys/select.h | |
| parent | 63f1b1c7629484370ebe1868da5af4008ba877e3 (diff) | |
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 (limited to 'include/sys/select.h')
| -rw-r--r-- | include/sys/select.h | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
| 50 | FD_SET(__f, __s); | 50 | FD_SET(__f, __s); |
| 51 | } | 51 | } |
| 52 | 52 | ||
| 53 | _STI int __fortify_FD_ISSET(int __f, fd_set * _FORTIFY_POS0 __s) | 53 | _STI int __fortify_FD_ISSET(int __f, const fd_set * _FORTIFY_POS0 __s) |
| 54 | { | 54 | { |
| 55 | __fh_size_t __b = __fh_bos(__s, 0); | 55 | __fh_size_t __b = __fh_bos(__s, 0); |
| 56 | 56 | ||
