File tree Expand file tree Collapse file tree 7 files changed +7
-7
lines changed Expand file tree Collapse file tree 7 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -3158,7 +3158,7 @@ f! {
31583158 return
31593159 }
31603160
3161- pub fn FD_ISSET ( fd: :: c_int, set: * mut fd_set) -> bool {
3161+ pub fn FD_ISSET ( fd: :: c_int, set: * const fd_set) -> bool {
31623162 let fd = fd as usize ;
31633163 let size = :: mem:: size_of_val( & ( * set) . fds_bits[ 0 ] ) * 8 ;
31643164 return ( ( * set) . fds_bits[ fd / size] & ( 1 << ( fd % size) ) ) != 0
Original file line number Diff line number Diff line change 541541 return
542542 }
543543
544- pub fn FD_ISSET ( fd: :: c_int, set: * mut fd_set) -> bool {
544+ pub fn FD_ISSET ( fd: :: c_int, set: * const fd_set) -> bool {
545545 let bits = :: mem:: size_of_val( & ( * set) . fds_bits[ 0 ] ) * 8 ;
546546 let fd = fd as usize ;
547547 return ( ( * set) . fds_bits[ fd / bits] & ( 1 << ( fd % bits) ) ) != 0
Original file line number Diff line number Diff line change @@ -1295,7 +1295,7 @@ f! {
12951295 return
12961296 }
12971297
1298- pub fn FD_ISSET ( fd: :: c_int, set: * mut fd_set) -> bool {
1298+ pub fn FD_ISSET ( fd: :: c_int, set: * const fd_set) -> bool {
12991299 let fd = fd as usize ;
13001300 let size = :: mem:: size_of_val( & ( * set) . fds_bits[ 0 ] ) * 8 ;
13011301 return ( ( * set) . fds_bits[ fd / size] & ( 1 << ( fd % size) ) ) != 0
Original file line number Diff line number Diff line change @@ -1397,7 +1397,7 @@ f! {
13971397 return
13981398 }
13991399
1400- pub fn FD_ISSET ( fd: :: c_int, set: * mut fd_set) -> bool {
1400+ pub fn FD_ISSET ( fd: :: c_int, set: * const fd_set) -> bool {
14011401 let fd = fd as usize ;
14021402 let size = :: mem:: size_of_val( & ( * set) . fds_bits[ 0 ] ) * 8 ;
14031403 return ( ( * set) . fds_bits[ fd / size] & ( 1 << ( fd % size) ) ) != 0
Original file line number Diff line number Diff line change 558558 return
559559 }
560560
561- pub fn FD_ISSET ( fd: :: c_int, set: * mut fd_set) -> bool {
561+ pub fn FD_ISSET ( fd: :: c_int, set: * const fd_set) -> bool {
562562 let bits = :: mem:: size_of_val( & ( * set) . fds_bits[ 0 ] ) * 8 ;
563563 let fd = fd as usize ;
564564 return ( ( * set) . fds_bits[ fd / bits] & ( 1 << ( fd % bits) ) ) != 0
Original file line number Diff line number Diff line change 898898 return
899899 }
900900
901- pub fn FD_ISSET ( fd: :: c_int, set: * mut fd_set) -> bool {
901+ pub fn FD_ISSET ( fd: :: c_int, set: * const fd_set) -> bool {
902902 let fd = fd as usize ;
903903 let size = :: mem:: size_of_val( & ( * set) . fds_bits[ 0 ] ) * 8 ;
904904 return ( ( * set) . fds_bits[ fd / size] & ( 1 << ( fd % size) ) ) != 0
Original file line number Diff line number Diff line change @@ -2171,7 +2171,7 @@ f! {
21712171 return
21722172 }
21732173
2174- pub fn FD_ISSET ( fd: :: c_int, set: * mut fd_set) -> bool {
2174+ pub fn FD_ISSET ( fd: :: c_int, set: * const fd_set) -> bool {
21752175 let bits = :: mem:: size_of_val( & ( * set) . fds_bits[ 0 ] ) * 8 ;
21762176 let fd = fd as usize ;
21772177 return ( ( * set) . fds_bits[ fd / bits] & ( 1 << ( fd % bits) ) ) != 0
You can’t perform that action at this time.
0 commit comments