diff --git a/src/stdio/Cargo.toml b/src/stdio/Cargo.toml index 27fbe42bc7eaccfac21d736d8b85de209f2a8a36..8261bc765aef949aefd0a371dbab44774e0f05c5 100644 --- a/src/stdio/Cargo.toml +++ b/src/stdio/Cargo.toml @@ -14,5 +14,4 @@ lazy_static = { version = "*", features = ["nightly", "spin_no_std"] } platform = { path = "../platform" } ralloc = { path = "../../ralloc", default-features = false } string = { path = "../string" } -stdlib = { path = "../stdlib" } va_list = { path = "../../va_list", features = ["no_std"] } diff --git a/src/stdio/src/helpers.rs b/src/stdio/src/helpers.rs index 3e898a24b5cd8fabed410ce0e5e32bdd90a4446a..261a968090921c7ce43b9dda85fc082fa4efc1a3 100644 --- a/src/stdio/src/helpers.rs +++ b/src/stdio/src/helpers.rs @@ -40,7 +40,6 @@ pub unsafe fn parse_mode_flags(mode_str: *const c_char) -> i32 { /// Open a file with the file descriptor `fd` in the mode `mode` pub unsafe fn _fdopen(fd: c_int, mode: *const c_char) -> Option<*mut FILE> { use string::strchr; - use stdlib::malloc; use core::mem::size_of; if *mode != b'r' as i8 && *mode != b'w' as i8 && *mode != b'a' as i8 { platform::errno = errno::EINVAL;