~kennylevinsen/greetd

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch

[PATCH v2] updated data type to portable raw os type c_char

Details
Message ID
<20200429100221.78028-1-andi@appelgriebsch.org>
DKIM signature
missing
Download raw message
Patch: +2 -1
---
 greetd/src/pam/session.rs | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/greetd/src/pam/session.rs b/greetd/src/pam/session.rs
index 668c436..9235336 100644
--- a/greetd/src/pam/session.rs
+++ b/greetd/src/pam/session.rs
@@ -1,5 +1,6 @@
use std::{
    ffi::{CStr, CString},
    os::raw::c_char,
    pin::Pin,
    ptr,
};
@@ -103,7 +104,7 @@ impl<'a> PamSession<'a> {
    }

    pub fn get_user(&mut self) -> Result<String, PamError> {
        let mut p: *const u8 = ptr::null_mut();
        let mut p: *const c_char = ptr::null_mut();
        self.last_code = pam_sys::get_user(self.handle, &mut p, ptr::null());
        match self.last_code {
            PamReturnCode::SUCCESS => {
-- 
2.10.1 (Apple Git-78)
Reply to thread Export thread (mbox)