]> git.ipfire.org Git - thirdparty/suricata.git/commit
rust/applayer: use c_int as return type for get_info_by_id 12009/head
authorJason Ish <jason.ish@oisf.net>
Tue, 22 Oct 2024 16:46:13 +0000 (10:46 -0600)
committerJason Ish <jason.ish@oisf.net>
Tue, 22 Oct 2024 16:46:13 +0000 (10:46 -0600)
commit45384ef969d180d962f4b50f19556c5e2c5cfccc
tree7a4688520dda434cff62b15e625b5a73f065516f
parentb44fc62e6023784949f0a5ea0707e36e7f9614da
rust/applayer: use c_int as return type for get_info_by_id

Rust was using i8 as the return type, while C uses int. As of Rust
1.82, the return value is turned to garbage over the FFI boundary.

Ticket: #7338
rust/derive/src/applayerevent.rs
rust/src/applayer.rs
rust/src/smb/smb.rs