Skip to content

Commit c7cd3b1

Browse files
committed
snmp: minor snmp.pdu_type type cleanup
1 parent 9c450d1 commit c7cd3b1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rust/src/snmp/detect.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ unsafe extern "C" fn snmp_detect_pdutype_parse(
161161
if let Ok(s) = ft_name.to_str() {
162162
if let Some(ctx) = detect_parse_uint_enum::<u32, SnmpPduType>(s) {
163163
let boxed = Box::new(ctx);
164-
return Box::into_raw(boxed) as *mut _;
164+
return Box::into_raw(boxed);
165165
}
166166
}
167167
return std::ptr::null_mut();

0 commit comments

Comments
 (0)