Skip to content

Commit

Permalink
Merge pull request #561 from pkubaj/patch-1
Browse files Browse the repository at this point in the history
Fix build on architectures with unsigned char
  • Loading branch information
mrmonday committed Apr 25, 2022
2 parents da0124d + ce180d3 commit ce67226
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pnet_datalink/src/bpf.rs
Expand Up @@ -129,7 +129,7 @@ pub fn channel(network_interface: &NetworkInterface, config: Config) -> io::Resu
}
let mut iface: bpf::ifreq = unsafe { mem::zeroed() };
for (i, c) in network_interface.name.bytes().enumerate() {
iface.ifr_name[i] = c as i8;
iface.ifr_name[i] = c as libc::c_char;
}

let buflen = config.read_buffer_size as libc::c_uint;
Expand Down

0 comments on commit ce67226

Please sign in to comment.