Skip to content

Commit

Permalink
sendmsg: remove unneeded mut
Browse files Browse the repository at this point in the history
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
  • Loading branch information
ignatenkobrain committed Aug 15, 2018
1 parent 6ccfc37 commit 1550373
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sys/socket/mod.rs
Expand Up @@ -678,7 +678,7 @@ pub fn sendmsg<'a>(fd: RawFd, iov: &[IoVec<&'a [u8]>], cmsgs: &[ControlMessage<'
{
let mut ofs = 0;
for cmsg in cmsgs {
let mut ptr = &mut cmsg_buffer[ofs..];
let ptr = &mut cmsg_buffer[ofs..];
unsafe {
cmsg.encode_into(ptr);
}
Expand Down

0 comments on commit 1550373

Please sign in to comment.