We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 41f9235 + daf9163 commit 32e4537Copy full SHA for 32e4537
talpid-wireguard/src/unix.rs
@@ -25,7 +25,7 @@ pub fn set_mtu(interface_name: &str, mtu: u16) -> Result<(), io::Error> {
25
26
unsafe {
27
std::ptr::copy_nonoverlapping(
28
- interface_name.as_ptr() as *const i8,
+ interface_name.as_ptr() as *const libc::c_char,
29
&mut ifr.ifr_name as *mut _,
30
interface_name.len(),
31
)
0 commit comments