-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix `c_char` vs `u8` errors in the linux_raw backend. Fix the linux_raw backend to handle the case where linux-raw-sys defines `c_char` as `i8`. linux-raw-sys used to always define `c_char` as `u8` because it usually isn't important to match the platform `char` type, but that makes it inconvenient to work with Rust's `CStr`/`CString` types which use `c_char`, so linux-raw-sys has started defining `c_char` as `i8` on platforms which define it that way. * Fix redundant `unsafe` blocks.
- Loading branch information
1 parent
b1f8c8f
commit 3758947
Showing
2 changed files
with
44 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters