Skip to content

Commit

Permalink
Replace magic -2 with pcap_sys::PCAP_ERROR_BREAK constant
Browse files Browse the repository at this point in the history
  • Loading branch information
kpcyrd committed Sep 6, 2024
1 parent 32bc786 commit 724d5ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sniff.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ impl Cap {
}))
},
0 => bail!("timeout expired"),
-2 => Ok(None),
pcap_sys::PCAP_ERROR_BREAK => Ok(None),
_ => unreachable!(),
}
}
Expand Down

0 comments on commit 724d5ca

Please sign in to comment.