From: John Hodge Date: Sun, 16 Mar 2014 09:08:05 +0000 (+0800) Subject: Usermode/ld-acess - Fix constness in FD_ISSET X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=b52f69bd4a5299bd990b9153dc80da5c898864c7;p=tpg%2Facess2.git Usermode/ld-acess - Fix constness in FD_ISSET --- diff --git a/Usermode/Libraries/ld-acess.so_src/include_exp/acess/fd_set.h b/Usermode/Libraries/ld-acess.so_src/include_exp/acess/fd_set.h index b2367d19..a0fbe433 100644 --- a/Usermode/Libraries/ld-acess.so_src/include_exp/acess/fd_set.h +++ b/Usermode/Libraries/ld-acess.so_src/include_exp/acess/fd_set.h @@ -39,7 +39,7 @@ static inline void FD_SET(int fd, fd_set *fdsetp) fd_set_ent_t mask = 1 << (fd % 16); fdsetp->flags[fd/16] |= mask; } -static inline int FD_ISSET(int fd, fd_set *fdsetp) +static inline int FD_ISSET(int fd, const fd_set *fdsetp) { if(fd < 0 || fd > FD_SETSIZE) return 0; fd_set_ent_t mask = 1 << (fd % 16);