Make inner platform functions private once more
This commit is contained in:
@@ -11,7 +11,7 @@ extern crate alloc;
|
||||
extern crate sc;
|
||||
|
||||
#[cfg(all(not(feature = "no_std"), target_os = "redox"))]
|
||||
pub extern crate syscall;
|
||||
extern crate syscall;
|
||||
|
||||
pub use allocator::*;
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ pub struct utsname {
|
||||
pub domainname: [c_char; UTSLENGTH],
|
||||
}
|
||||
|
||||
pub fn e(sys: usize) -> usize {
|
||||
fn e(sys: usize) -> usize {
|
||||
if (sys as isize) < 0 && (sys as isize) >= -256 {
|
||||
unsafe {
|
||||
errno = -(sys as isize) as c_int;
|
||||
|
||||
@@ -19,7 +19,7 @@ struct SockData {
|
||||
_pad: [c_char; 8],
|
||||
}
|
||||
|
||||
pub fn e(sys: Result<usize>) -> usize {
|
||||
fn e(sys: Result<usize>) -> usize {
|
||||
match sys {
|
||||
Ok(ok) => ok,
|
||||
Err(err) => {
|
||||
|
||||
Reference in New Issue
Block a user