fix: Use c_char where appropriate
This builds on the previous commit to make it compatible with the currently locked build configuration. (cherry picked from commit bd1edec2fa5251263c768c3e2b312eb4f21d2bb4)
This commit is contained in:
parent
c924fed81b
commit
f7d4499ab2
3 changed files with 6 additions and 5 deletions
|
|
@ -1,5 +1,6 @@
|
|||
use anyhow::{bail, Result};
|
||||
use nix_c_raw as raw;
|
||||
use std::os::raw::c_char;
|
||||
use std::ptr::null_mut;
|
||||
use std::ptr::NonNull;
|
||||
|
||||
|
|
@ -50,7 +51,7 @@ impl Context {
|
|||
raw::set_err_msg(
|
||||
self.inner.as_ptr(),
|
||||
raw::err_NIX_OK,
|
||||
b"\0".as_ptr() as *const u8,
|
||||
b"\0".as_ptr() as *const c_char,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue