Cleanup allocation functions

This commit is contained in:
Jeremy Soller
2018-07-03 19:40:47 -06:00
parent b6b34a7026
commit 42abc98a99
4 changed files with 18 additions and 10 deletions
+1 -1
View File
@@ -62,7 +62,7 @@ pub unsafe fn _fdopen(fd: c_int, mode: *const c_char) -> Option<*mut FILE> {
flags |= F_APP;
}
let f = platform::alloc(mem::size_of::<FILE>(), 16, 8) as *mut FILE;
let f = platform::alloc(mem::size_of::<FILE>()) as *mut FILE;
// Allocate the file
if f.is_null() {
None