stdio and c_vec cleanup

This commit is contained in:
auronandace
2026-02-20 14:10:34 +00:00
parent dbe7fb0b18
commit 768e28cb4e
5 changed files with 16 additions and 16 deletions
+2 -2
View File
@@ -154,10 +154,10 @@ pub unsafe extern "C" fn munmap(addr: *mut c_void, len: size_t) -> c_int {
}
#[cfg(target_os = "linux")]
static SHM_PATH: &'static [u8] = b"/dev/shm/";
static SHM_PATH: &[u8] = b"/dev/shm/";
#[cfg(target_os = "redox")]
static SHM_PATH: &'static [u8] = b"/scheme/shm/";
static SHM_PATH: &[u8] = b"/scheme/shm/";
unsafe fn shm_path(name: *const c_char) -> CString {
let name_c = unsafe { CStr::from_ptr(name) };