Skip to content

Commit

Permalink
Remove no longer needed unsafe
Browse files Browse the repository at this point in the history
  • Loading branch information
Wojtek242 committed Oct 27, 2024
1 parent d8bd39e commit 98570c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/capture/activated/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ mod testmod {
pub struct NextExContext(raw::__pcap_next_ex::Context);
pub fn next_ex_expect(pcap: *mut raw::pcap_t) -> NextExContext {
let data_ptr: *const libc::c_uchar = DATA.as_ptr();
let pkthdr_ptr: *mut raw::pcap_pkthdr = unsafe { std::ptr::addr_of_mut!(PKTHDR) };
let pkthdr_ptr: *mut raw::pcap_pkthdr = std::ptr::addr_of_mut!(PKTHDR);

let ctx = raw::pcap_next_ex_context();
ctx.checkpoint();
Expand Down

0 comments on commit 98570c9

Please sign in to comment.