mirror of
https://github.com/hermitcore/libhermit.git
synced 2025-03-09 00:00:03 +01:00
remove compiler warnings
This commit is contained in:
parent
a4d8ee2f4c
commit
81661377a8
1 changed files with 2 additions and 2 deletions
|
@ -29,7 +29,7 @@ use core::fmt;
|
|||
use spin::Mutex;
|
||||
|
||||
extern {
|
||||
pub fn kputs(s: &[u8]) -> i32;
|
||||
pub fn kputs(s: *const u8) -> i32;
|
||||
}
|
||||
|
||||
pub struct Console;
|
||||
|
@ -38,7 +38,7 @@ impl fmt::Write for Console {
|
|||
/// print string as kernel message.
|
||||
fn write_str(&mut self, s: &str) -> fmt::Result {
|
||||
unsafe {
|
||||
kputs(s.as_bytes());
|
||||
kputs(s.as_ptr());
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue