fix: more cleaning up for FreeBSD
This commit is contained in:
@@ -42,7 +42,6 @@ fn main() {
|
||||
.define("DISABLE_TC", "ON")
|
||||
.build();
|
||||
|
||||
// panic!("hahahahah test {}", dst.display());
|
||||
println!("cargo:rustc-link-search=native={}/lib", dst.display());
|
||||
println!("cargo:rustc-link-search=native={}/lib64", dst.display());
|
||||
println!("cargo:rustc-link-lib=static=pcap");
|
||||
|
||||
@@ -228,7 +228,7 @@ impl<T: Disabled> Interface<T> {
|
||||
}
|
||||
|
||||
pub fn activate(mut self) -> error::Result<Interface<DevActivated>> {
|
||||
if unsafe { dbg!(ffi::pcap_activate(self.dev)) } != 0 {
|
||||
if unsafe { ffi::pcap_activate(self.dev) } != 0 {
|
||||
Err(unsafe { ffi::pcap_geterr(self.dev) })?;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user