File tree 8 files changed +8
-8
lines changed
8 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -3139,7 +3139,7 @@ f! {
3139
3139
return
3140
3140
}
3141
3141
3142
- pub fn FD_ISSET ( fd: :: c_int, set: * mut fd_set) -> bool {
3142
+ pub fn FD_ISSET ( fd: :: c_int, set: * const fd_set) -> bool {
3143
3143
let fd = fd as usize ;
3144
3144
let size = :: mem:: size_of_val( & ( * set) . fds_bits[ 0 ] ) * 8 ;
3145
3145
return ( ( * set) . fds_bits[ fd / size] & ( 1 << ( fd % size) ) ) != 0
Original file line number Diff line number Diff line change 466
466
return
467
467
}
468
468
469
- pub fn FD_ISSET ( fd: :: c_int, set: * mut fd_set) -> bool {
469
+ pub fn FD_ISSET ( fd: :: c_int, set: * const fd_set) -> bool {
470
470
let bits = :: mem:: size_of_val( & ( * set) . fds_bits[ 0 ] ) * 8 ;
471
471
let fd = fd as usize ;
472
472
return ( ( * set) . fds_bits[ fd / bits] & ( 1 << ( fd % bits) ) ) != 0
Original file line number Diff line number Diff line change @@ -1214,7 +1214,7 @@ f! {
1214
1214
return
1215
1215
}
1216
1216
1217
- pub fn FD_ISSET ( fd: :: c_int, set: * mut fd_set) -> bool {
1217
+ pub fn FD_ISSET ( fd: :: c_int, set: * const fd_set) -> bool {
1218
1218
let fd = fd as usize ;
1219
1219
let size = :: mem:: size_of_val( & ( * set) . fds_bits[ 0 ] ) * 8 ;
1220
1220
return ( ( * set) . fds_bits[ fd / size] & ( 1 << ( fd % size) ) ) != 0
Original file line number Diff line number Diff line change @@ -1244,7 +1244,7 @@ f! {
1244
1244
return
1245
1245
}
1246
1246
1247
- pub fn FD_ISSET ( fd: :: c_int, set: * mut fd_set) -> bool {
1247
+ pub fn FD_ISSET ( fd: :: c_int, set: * const fd_set) -> bool {
1248
1248
let fd = fd as usize ;
1249
1249
let size = :: mem:: size_of_val( & ( * set) . fds_bits[ 0 ] ) * 8 ;
1250
1250
return ( ( * set) . fds_bits[ fd / size] & ( 1 << ( fd % size) ) ) != 0
Original file line number Diff line number Diff line change 555
555
return
556
556
}
557
557
558
- pub fn FD_ISSET ( fd: :: c_int, set: * mut fd_set) -> bool {
558
+ pub fn FD_ISSET ( fd: :: c_int, set: * const fd_set) -> bool {
559
559
let bits = :: mem:: size_of_val( & ( * set) . fds_bits[ 0 ] ) * 8 ;
560
560
let fd = fd as usize ;
561
561
return ( ( * set) . fds_bits[ fd / bits] & ( 1 << ( fd % bits) ) ) != 0
Original file line number Diff line number Diff line change 847
847
return
848
848
}
849
849
850
- pub fn FD_ISSET ( fd: :: c_int, set: * mut fd_set) -> bool {
850
+ pub fn FD_ISSET ( fd: :: c_int, set: * const fd_set) -> bool {
851
851
let fd = fd as usize ;
852
852
let size = :: mem:: size_of_val( & ( * set) . fds_bits[ 0 ] ) * 8 ;
853
853
return ( ( * set) . fds_bits[ fd / size] & ( 1 << ( fd % size) ) ) != 0
Original file line number Diff line number Diff line change @@ -2054,7 +2054,7 @@ f! {
2054
2054
return
2055
2055
}
2056
2056
2057
- pub fn FD_ISSET ( fd: :: c_int, set: * mut fd_set) -> bool {
2057
+ pub fn FD_ISSET ( fd: :: c_int, set: * const fd_set) -> bool {
2058
2058
let bits = :: mem:: size_of_val( & ( * set) . fds_bits[ 0 ] ) * 8 ;
2059
2059
let fd = fd as usize ;
2060
2060
return ( ( * set) . fds_bits[ fd / bits] & ( 1 << ( fd % bits) ) ) != 0
Original file line number Diff line number Diff line change @@ -1511,7 +1511,7 @@ f! {
1511
1511
return
1512
1512
}
1513
1513
1514
- pub fn FD_ISSET ( fd: :: c_int, set: * mut fd_set) -> bool {
1514
+ pub fn FD_ISSET ( fd: :: c_int, set: * const fd_set) -> bool {
1515
1515
let fd = fd as usize ;
1516
1516
let size = :: mem:: size_of_val( & ( * set) . fds_bits[ 0 ] ) * 8 ;
1517
1517
return ( ( * set) . fds_bits[ fd / size] & ( 1 << ( fd % size) ) ) != 0
You can’t perform that action at this time.
0 commit comments