mirror of
https://git.FreeBSD.org/src.git
synced 2024-11-28 08:02:54 +00:00
sys/select.h: const'ify the fd_set that __fdset_idx() takes
Some callers may be operating on a const fd_set and we don't particularly care, so const'ify it. Reviewed by: kib (earlier version), markj Sponsored by: Klara, Inc. Sponsored by: Stormshield Differential Revision: https://reviews.freebsd.org/D45976
This commit is contained in:
parent
d5f8270917
commit
4928dcc0eb
@ -86,7 +86,7 @@ typedef struct fd_set {
|
||||
#define __fdset_idx(p, n) __fdset_idx_(p, n)
|
||||
#else
|
||||
__ssp_inline unsigned long
|
||||
__fdset_idx(fd_set *p, unsigned long idx)
|
||||
__fdset_idx(const fd_set *p, unsigned long idx)
|
||||
{
|
||||
__size_t psz = __ssp_bos0(p);
|
||||
unsigned long sidx = __fdset_idx_(p, idx);
|
||||
|
Loading…
Reference in New Issue
Block a user