diff options
author | Jeremie Courreges-Anglas <jca@cvs.openbsd.org> | 2016-03-07 18:33:11 +0000 |
---|---|---|
committer | Jeremie Courreges-Anglas <jca@cvs.openbsd.org> | 2016-03-07 18:33:11 +0000 |
commit | b9a94269d3b6b5409fd5a111d272087c7af120a6 (patch) | |
tree | ada1bf5e1b9ddba686ffa2037db50b86167a8314 /sys | |
parent | dc8862fb0d38e14d8598fe8f3046a65e9e4a11d1 (diff) |
Make __fd_isset() take a const fd_set * param, to avoid upsetting c++
ok zhuk@ deraadt@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/sys/select.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/sys/select.h b/sys/sys/select.h index ce77593ec5d..a59fd87fcb7 100644 --- a/sys/sys/select.h +++ b/sys/sys/select.h @@ -1,4 +1,4 @@ -/* $OpenBSD: select.h,v 1.15 2016/03/04 20:35:33 deraadt Exp $ */ +/* $OpenBSD: select.h,v 1.16 2016/03/07 18:33:10 jca Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -85,7 +85,7 @@ __fd_clr(int fd, fd_set *p) #define FD_CLR(n, p) __fd_clr((n), (p)) static __inline int -__fd_isset(int fd, fd_set *p) +__fd_isset(int fd, const fd_set *p) { return (p->fds_bits[fd / __NFDBITS] & (1U << (fd % __NFDBITS))); } |