Rust: fix prototype of parsing function (make pstate mutable)

pull/3315/head
Pierre Chifflier 8 years ago committed by Victor Julien
parent 8e8f0db192
commit b810275b16

@ -192,7 +192,7 @@ pub extern "C" fn rs_ntp_state_free(state: *mut libc::c_void) {
#[no_mangle]
pub extern "C" fn rs_ntp_parse_request(_flow: *const core::Flow,
state: *mut libc::c_void,
_pstate: *const libc::c_void,
_pstate: *mut libc::c_void,
input: *const libc::uint8_t,
input_len: u32,
_data: *const libc::c_void) -> i8 {
@ -204,7 +204,7 @@ pub extern "C" fn rs_ntp_parse_request(_flow: *const core::Flow,
#[no_mangle]
pub extern "C" fn rs_ntp_parse_response(_flow: *const core::Flow,
state: *mut libc::c_void,
_pstate: *const libc::c_void,
_pstate: *mut libc::c_void,
input: *const libc::uint8_t,
input_len: u32,
_data: *const libc::c_void) -> i8 {

@ -117,7 +117,7 @@ macro_rules! cast_pointer {
pub type ParseFn = extern "C" fn (flow: *const Flow,
state: *mut c_void,
pstate: *const c_void,
pstate: *mut c_void,
input: *const u8,
input_len: u32,
data: *const c_void) -> i8;

Loading…
Cancel
Save