Skip to content

Commit 537d701

Browse files
committed
utmpx: use the imported FFI character type
1 parent e8d445a commit 537d701

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/uucore/src/lib/features/systemd_logind.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ mod login {
129129
pub fn get_sessions(
130130
api: &ffi::SystemdLoginApi,
131131
) -> Result<Vec<String>, Box<dyn std::error::Error>> {
132-
let mut sessions_ptr: *mut *mut core::ffi::c_char = ptr::null_mut();
132+
let mut sessions_ptr: *mut *mut c_char = ptr::null_mut();
133133

134134
let result = unsafe { (api.sd_get_sessions)(&raw mut sessions_ptr) };
135135

0 commit comments

Comments
 (0)