File tree Expand file tree Collapse file tree 2 files changed +1
-8
lines changed
library/std/src/sys/hermit Expand file tree Collapse file tree 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() {
101101// SAFETY: must be called only once during runtime initialization.
102102// NOTE: this is not guaranteed to run, for example when Rust code is called externally.
103103pub unsafe fn init ( argc : isize , argv : * const * const u8 , _sigpipe : u8 ) {
104- let _ = net:: init ( ) ;
105104 args:: init ( argc, argv) ;
106105}
107106
Original file line number Diff line number Diff line change @@ -33,13 +33,7 @@ pub fn cvt_gai(err: i32) -> io::Result<()> {
3333 ) )
3434}
3535
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 ( ) { }
4337
4438#[ derive( Debug ) ]
4539pub struct Socket ( FileDesc ) ;
You can’t perform that action at this time.
0 commit comments