changed memset back not to return anything

Signed-off-by: Quentin JEROME <qjerome@users.noreply.github.com>
pull/583/head
Quentin JEROME 2 years ago
parent a51c9bc532
commit 419448ed1a

@ -57,12 +57,11 @@ pub trait BpfContext {
}
#[no_mangle]
pub unsafe extern "C" fn memset(s: *mut u8, c: c_int, n: usize) -> u8 {
pub unsafe extern "C" fn memset(s: *mut u8, c: c_int, n: usize) {
let base = s as usize;
for i in 0..n {
*((base + i) as *mut u8) = c as u8;
}
0
}
#[no_mangle]

Loading…
Cancel
Save