File tree 2 files changed +1
-8
lines changed
library/std/src/sys/hermit
2 files changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,6 @@ pub extern "C" fn __rust_abort() {
101
101
// SAFETY: must be called only once during runtime initialization.
102
102
// NOTE: this is not guaranteed to run, for example when Rust code is called externally.
103
103
pub unsafe fn init ( argc : isize , argv : * const * const u8 , _sigpipe : u8 ) {
104
- let _ = net:: init ( ) ;
105
104
args:: init ( argc, argv) ;
106
105
}
107
106
Original file line number Diff line number Diff line change @@ -33,13 +33,7 @@ pub fn cvt_gai(err: i32) -> io::Result<()> {
33
33
) )
34
34
}
35
35
36
- /// Checks whether the HermitCore's socket interface has been started already, and
37
- /// if not, starts it.
38
- pub fn init ( ) {
39
- if unsafe { netc:: network_init ( ) } < 0 {
40
- panic ! ( "Unable to initialize network interface" ) ;
41
- }
42
- }
36
+ pub fn init ( ) { }
43
37
44
38
#[ derive( Debug ) ]
45
39
pub struct Socket ( FileDesc ) ;
You can’t perform that action at this time.
0 commit comments