~kennylevinsen/greetd

Fix pam build issues (i8 ptr to u8 ptr) v1 SUPERSEDED

Andreas Gerlach: 1
 Fix pam build issues (i8 ptr to u8 ptr)

 1 files changed, 1 insertions(+), 1 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~kennylevinsen/greetd/patches/10373/mbox | git am -3
Learn more about email & git
View this thread in the archives

[PATCH] Fix pam build issues (i8 ptr to u8 ptr) Export this patch

---
 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