Browse Source

Actually remove stdlib from stdio. This should have been done with wchar being put in, but I messed something up

Tom Almeida 6 years ago
parent
commit
bf6db91993
2 changed files with 0 additions and 2 deletions
  1. 0 1
      src/stdio/Cargo.toml
  2. 0 1
      src/stdio/src/helpers.rs

+ 0 - 1
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"] }

+ 0 - 1
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;