Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion nix-bindings-util/src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ mod tests {
raw::set_err_msg(
ctx_ptr,
raw::err_NIX_ERR_UNKNOWN.try_into().unwrap(),
b"dummy error message\0".as_ptr() as *const i8,
b"dummy error message\0".as_ptr() as *const std::os::raw::c_char,
);
}
}
Expand Down
2 changes: 1 addition & 1 deletion nix-bindings-util/src/string_return.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ mod tests {
#[test]
fn test_callback_result_string() {
let mut ret: Result<String> = result_string_init!();
let start: *const std::os::raw::c_char = b"helloGARBAGE".as_ptr() as *const i8;
let start = b"helloGARBAGE".as_ptr() as *const std::os::raw::c_char;
let n: std::os::raw::c_uint = 5;
let user_data: *mut std::os::raw::c_void = callback_get_result_string_data(&mut ret);
unsafe {
Expand Down