From 849cc4cd4fa393d126cdfb8333e6dfbff5716730 Mon Sep 17 00:00:00 2001 From: Matt Blessed Date: Mon, 19 Apr 2021 02:23:46 -0400 Subject: [PATCH] use proper c char types (#54) related: https://github.com/tonarino/innernet/issues/50 --- wgctrl-rs/src/device.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wgctrl-rs/src/device.rs b/wgctrl-rs/src/device.rs index 5a9db5e..1f53611 100644 --- a/wgctrl-rs/src/device.rs +++ b/wgctrl-rs/src/device.rs @@ -139,7 +139,7 @@ impl FromStr for InterfaceName { return Err(InvalidInterfaceName::InvalidChars); } - *out = *b as i8; + *out = *b as c_char; } Ok(Self(buf))