Browse Source

changed memset back not to return anything

Signed-off-by: Quentin JEROME <qjerome@users.noreply.github.com>
Quentin JEROME 2 years ago
parent
commit
419448ed1a
1 changed files with 1 additions and 2 deletions
  1. 1 2
      bpf/aya-bpf/src/lib.rs

+ 1 - 2
bpf/aya-bpf/src/lib.rs

@@ -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]