Mercurial > crates > nonstick
diff src/constants.rs @ 86:23162cd399aa default tip
fix THE REST OF THE CONSTANTS
author | Paul Fisher <paul@pfish.zone> |
---|---|
date | Tue, 10 Jun 2025 02:43:31 -0400 |
parents | 5e14bb093851 |
children |
line wrap: on
line diff
--- a/src/constants.rs Tue Jun 10 02:42:29 2025 -0400 +++ b/src/constants.rs Tue Jun 10 02:43:31 2025 -0400 @@ -110,8 +110,7 @@ /// the password service should update all passwords. /// /// This flag is only used by `change_authtok`. - const CHANGE_EXPIRED_AUTHTOK = pam_ffi::PAM_CHANGE_EXPIRED_AUTHTOK; - + const CHANGE_EXPIRED_AUTHTOK = pam_ffi::PAM_CHANGE_EXPIRED_AUTHTOK as u32; /// This is a preliminary check for password changing. /// The password should not be changed. /// @@ -119,7 +118,7 @@ /// Applications may not use this flag. /// /// This flag is only used by `change_authtok`. - const PRELIMINARY_CHECK = pam_ffi::PAM_PRELIM_CHECK; + const PRELIMINARY_CHECK = pam_ffi::PAM_PRELIM_CHECK as u32; /// The password should actuallyPR be updated. /// This and [Self::PRELIMINARY_CHECK] are mutually exclusive. /// @@ -127,7 +126,7 @@ /// Applications may not use this flag. /// /// This flag is only used by `change_authtok`. - const UPDATE_AUTHTOK = pam_ffi::PAM_UPDATE_AUTHTOK; + const UPDATE_AUTHTOK = pam_ffi::PAM_UPDATE_AUTHTOK as u32; } }