1
0
Fork 0
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:
Stefan Lankes 2017-07-19 17:23:38 +02:00
parent a4d8ee2f4c
commit 81661377a8

View file

@ -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(())
}