Mercurial > crates > nonstick
comparison src/libpam/question.rs @ 185:fb8b547b36b7
Banish al(most al)l use of `i32` in favor of `c_int`.
| author | Paul Fisher <paul@pfish.zone> |
|---|---|
| date | Thu, 31 Jul 2025 14:45:38 -0400 |
| parents | a1bb1d013567 |
| children |
comparison
equal
deleted
inserted
replaced
| 184:42f747774d94 | 185:fb8b547b36b7 |
|---|---|
| 10 use std::os::unix::ffi::OsStrExt; | 10 use std::os::unix::ffi::OsStrExt; |
| 11 use std::ptr::NonNull; | 11 use std::ptr::NonNull; |
| 12 | 12 |
| 13 memory::num_enum! { | 13 memory::num_enum! { |
| 14 /// The C enum values for messages shown to the user. | 14 /// The C enum values for messages shown to the user. |
| 15 enum Style(i32) { | 15 enum Style { |
| 16 /// Requests information from the user; will be masked when typing. | 16 /// Requests information from the user; will be masked when typing. |
| 17 PromptEchoOff = libpam_sys::PAM_PROMPT_ECHO_OFF, | 17 PromptEchoOff = libpam_sys::PAM_PROMPT_ECHO_OFF, |
| 18 /// Requests information from the user; will not be masked. | 18 /// Requests information from the user; will not be masked. |
| 19 PromptEchoOn = libpam_sys::PAM_PROMPT_ECHO_ON, | 19 PromptEchoOn = libpam_sys::PAM_PROMPT_ECHO_ON, |
| 20 /// An error message. | 20 /// An error message. |
