~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] Fix pam build issues (i8 ptr to u8 ptr)

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

diff --git a/greetd/src/pam/session.rs b/greetd/src/pam/session.rs
index 6bbd04a..668c436 100644
--- a/greetd/src/pam/session.rs
+++ b/greetd/src/pam/session.rs
@@ -103,7 +103,7 @@ impl<'a> PamSession<'a> {
    }

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