Skip to content

Commit 60202fb

Browse files
ncopajvoisin
authored andcommitted
Use const fd_set for FD_ISSET
This fixes invalid conversion errors when the fd_set is defined as const. fixes #66
1 parent 63f1b1c commit 60202fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/sys/select.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ _STI void __fortify_FD_SET(int __f, fd_set * _FORTIFY_POS0 __s)
5050
FD_SET(__f, __s);
5151
}
5252

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)
5454
{
5555
__fh_size_t __b = __fh_bos(__s, 0);
5656

0 commit comments

Comments
 (0)