We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b5f3f7f + f5a2119 commit 37dde8aCopy full SHA for 37dde8a
rust/scx_utils/src/user_exit_info.rs
@@ -6,6 +6,7 @@ use crate::bindings;
6
use anyhow::bail;
7
use anyhow::Result;
8
use std::ffi::CStr;
9
+use std::os::raw::c_char;
10
11
pub enum ScxExitKind {
12
None = bindings::scx_exit_kind_SCX_EXIT_NONE as isize,
@@ -71,9 +72,9 @@ impl UserExitInfo {
71
72
/// type which then calls this method with the individual fields.
73
pub fn new(
74
kind_ptr: *const i32,
- reason_ptr: *const i8,
75
- msg_ptr: *const i8,
76
- dump_ptr: *const i8,
+ reason_ptr: *const c_char,
+ msg_ptr: *const c_char,
77
+ dump_ptr: *const c_char,
78
) -> Self {
79
let kind = unsafe { std::ptr::read_volatile(kind_ptr) };
80
0 commit comments