aboutsummaryrefslogtreecommitdiff
path: root/rustables/src/batch.rs
diff options
context:
space:
mode:
authorlafleur <lafleur@boum.org>2021-11-07 14:19:37 +0100
committerlafleur <lafleur@boum.org>2021-11-07 14:19:37 +0100
commit1e33e3ab0790d977add329e9686b4b9e5570ba3c (patch)
treeeb55ce7ff42be89be640ce2330e2503349267798 /rustables/src/batch.rs
parent55d9bf885e009953a0001062b2b60c21e8322a31 (diff)
call bindgen on build in rustables
Diffstat (limited to 'rustables/src/batch.rs')
-rw-r--r--rustables/src/batch.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/rustables/src/batch.rs b/rustables/src/batch.rs
index 3cdd52b..c8ec5aa 100644
--- a/rustables/src/batch.rs
+++ b/rustables/src/batch.rs
@@ -1,5 +1,5 @@
use crate::{MsgType, NlMsg};
-use rustables_sys::{self as sys, libc};
+use crate::sys::{self as sys, libc};
use std::ffi::c_void;
use std::os::raw::c_char;
use std::ptr;
@@ -157,7 +157,7 @@ impl FinalizedBatch {
};
num_pages
];
- let iovecs_ptr = iovecs.as_mut_ptr() as *mut [u8; 0];
+ let iovecs_ptr = iovecs.as_mut_ptr();
unsafe {
sys::nftnl_batch_iovec(self.batch.batch, iovecs_ptr, num_pages as u32);
}