Skip to content

Commit

Permalink
fixup! allow recieving with a per-call timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
AJMansfield committed Sep 26, 2023
1 parent dca4447 commit ca39550
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pnet_datalink/src/linux.rs
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ impl DataLinkReceiver for DataLinkReceiverImpl {
}
}

fn next_with_timeout<'a>(&'a mut self, t: Duration) -> io::Result<&[u8]> {
fn next_with_timeout(&mut self, t: Duration) -> io::Result<&[u8]> {
let timeout = Some(pnet_sys::duration_to_timespec(t));
let mut caddr: libc::sockaddr_storage = unsafe { mem::zeroed() };
unsafe {
Expand Down

0 comments on commit ca39550

Please sign in to comment.