Skip to content

Commit

Permalink
proxy: Fix build with new nix recvmsg lifetimes
Browse files Browse the repository at this point in the history
An updated nix fixes an incorrect lifetime.

cc nix-rust/nix#2083

Signed-off-by: Colin Walters <walters@verbum.org>
  • Loading branch information
cgwalters committed Aug 28, 2023
1 parent 04c527d commit 95da872
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/imageproxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -314,9 +314,10 @@ impl ImageProxy {
let mut buf = [0u8; MAX_MSG_SIZE];
let mut cmsg_buffer = nix::cmsg_space!([RawFd; 1]);
let iov = std::io::IoSliceMut::new(buf.as_mut());
let mut iov = [iov];
let r = nixsocket::recvmsg::<()>(
sockfd.as_raw_fd(),
&mut [iov],
&mut iov,
Some(&mut cmsg_buffer),
nixsocket::MsgFlags::MSG_CMSG_CLOEXEC,
)?;
Expand Down

0 comments on commit 95da872

Please sign in to comment.