1
0
mirror of https://github.com/tonarino/innernet.git synced 2025-03-17 21:18:22 +02:00

use proper c char types (#54)

related: https://github.com/tonarino/innernet/issues/50
This commit is contained in:
Matt Blessed 2021-04-19 02:23:46 -04:00 committed by GitHub
parent c4e369ee54
commit 849cc4cd4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -139,7 +139,7 @@ impl FromStr for InterfaceName {
return Err(InvalidInterfaceName::InvalidChars);
}
*out = *b as i8;
*out = *b as c_char;
}
Ok(Self(buf))