Mercurial > crates > nonstick
comparison src/libpam/question.rs @ 113:178310336596
Fix up more constants, make things i32 rather than u32.
author | Paul Fisher <paul@pfish.zone> |
---|---|
date | Sun, 29 Jun 2025 03:11:33 -0400 |
parents | e97534be35e3 |
children |
comparison
equal
deleted
inserted
replaced
112:82995b4dccee | 113:178310336596 |
---|---|
175 } | 175 } |
176 } | 176 } |
177 | 177 |
178 /// The C enum values for messages shown to the user. | 178 /// The C enum values for messages shown to the user. |
179 #[derive(Debug, PartialEq, TryFromPrimitive, IntoPrimitive)] | 179 #[derive(Debug, PartialEq, TryFromPrimitive, IntoPrimitive)] |
180 #[repr(u32)] | 180 #[repr(i32)] |
181 enum Style { | 181 enum Style { |
182 /// Requests information from the user; will be masked when typing. | 182 /// Requests information from the user; will be masked when typing. |
183 PromptEchoOff = pam_ffi::PAM_PROMPT_ECHO_OFF, | 183 PromptEchoOff = pam_ffi::PAM_PROMPT_ECHO_OFF, |
184 /// Requests information from the user; will not be masked. | 184 /// Requests information from the user; will not be masked. |
185 PromptEchoOn = pam_ffi::PAM_PROMPT_ECHO_ON, | 185 PromptEchoOn = pam_ffi::PAM_PROMPT_ECHO_ON, |