Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
hurd: Fix clippy::ptr_as_ptr warnings.
  • Loading branch information
collinfunk committed Jun 17, 2025
commit 483e331281ec08de555759b433c5a7bccacf91b5
4 changes: 2 additions & 2 deletions src/unix/hurd/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3424,7 +3424,7 @@ const_fn! {
f! {
pub fn CMSG_FIRSTHDR(mhdr: *const msghdr) -> *mut cmsghdr {
if (*mhdr).msg_controllen as usize >= mem::size_of::<cmsghdr>() {
(*mhdr).msg_control as *mut cmsghdr
(*mhdr).msg_control.cast::<cmsghdr>()
} else {
core::ptr::null_mut::<cmsghdr>()
}
Expand Down Expand Up @@ -3453,7 +3453,7 @@ f! {
{
core::ptr::null_mut::<cmsghdr>()
} else {
next as *mut cmsghdr
next.cast::<cmsghdr>()
}
}

Expand Down
Loading