mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 09:41:03 -04: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue