Skip to content

Commit 32e4537

Browse files
Merge branch 'fix-libc-type-error'
2 parents 41f9235 + daf9163 commit 32e4537

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

talpid-wireguard/src/unix.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ pub fn set_mtu(interface_name: &str, mtu: u16) -> Result<(), io::Error> {
2525

2626
unsafe {
2727
std::ptr::copy_nonoverlapping(
28-
interface_name.as_ptr() as *const i8,
28+
interface_name.as_ptr() as *const libc::c_char,
2929
&mut ifr.ifr_name as *mut _,
3030
interface_name.len(),
3131
)

0 commit comments

Comments
 (0)