# HG changeset patch # User Paul Fisher # Date 1749537811 14400 # Node ID 23162cd399aa88edc2a2ccb6d9c7cd879201680c # Parent 5e14bb09385132b32d81021adc8b07fce13e9b32 fix THE REST OF THE CONSTANTS diff -r 5e14bb093851 -r 23162cd399aa src/constants.rs --- 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; } }