File tree 7 files changed +7
-7
lines changed
7 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -3158,7 +3158,7 @@ f! {
3158
3158
return
3159
3159
}
3160
3160
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 {
3162
3162
let fd = fd as usize ;
3163
3163
let size = :: mem:: size_of_val( & ( * set) . fds_bits[ 0 ] ) * 8 ;
3164
3164
return ( ( * set) . fds_bits[ fd / size] & ( 1 << ( fd % size) ) ) != 0
Original file line number Diff line number Diff line change 541
541
return
542
542
}
543
543
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 {
545
545
let bits = :: mem:: size_of_val( & ( * set) . fds_bits[ 0 ] ) * 8 ;
546
546
let fd = fd as usize ;
547
547
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! {
1295
1295
return
1296
1296
}
1297
1297
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 {
1299
1299
let fd = fd as usize ;
1300
1300
let size = :: mem:: size_of_val( & ( * set) . fds_bits[ 0 ] ) * 8 ;
1301
1301
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! {
1397
1397
return
1398
1398
}
1399
1399
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 {
1401
1401
let fd = fd as usize ;
1402
1402
let size = :: mem:: size_of_val( & ( * set) . fds_bits[ 0 ] ) * 8 ;
1403
1403
return ( ( * set) . fds_bits[ fd / size] & ( 1 << ( fd % size) ) ) != 0
Original file line number Diff line number Diff line change 558
558
return
559
559
}
560
560
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 {
562
562
let bits = :: mem:: size_of_val( & ( * set) . fds_bits[ 0 ] ) * 8 ;
563
563
let fd = fd as usize ;
564
564
return ( ( * set) . fds_bits[ fd / bits] & ( 1 << ( fd % bits) ) ) != 0
Original file line number Diff line number Diff line change 898
898
return
899
899
}
900
900
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 {
902
902
let fd = fd as usize ;
903
903
let size = :: mem:: size_of_val( & ( * set) . fds_bits[ 0 ] ) * 8 ;
904
904
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! {
2171
2171
return
2172
2172
}
2173
2173
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 {
2175
2175
let bits = :: mem:: size_of_val( & ( * set) . fds_bits[ 0 ] ) * 8 ;
2176
2176
let fd = fd as usize ;
2177
2177
return ( ( * set) . fds_bits[ fd / bits] & ( 1 << ( fd % bits) ) ) != 0
You can’t perform that action at this time.
0 commit comments