Code style fixes.
This commit is contained in:
parent
97d9abd6c1
commit
5bd3572c75
1 changed files with 5 additions and 3 deletions
|
|
@ -30,7 +30,8 @@
|
||||||
#define VERSION 1_0_3
|
#define VERSION 1_0_3
|
||||||
|
|
||||||
// Custom data structure to hold user-entered password
|
// Custom data structure to hold user-entered password
|
||||||
struct pam_credentials {
|
struct pam_credentials
|
||||||
|
{
|
||||||
const char *password;
|
const char *password;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -111,7 +112,8 @@ int authenticate(const char *username, const char *password, int verbose)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Function to prompt user for input, optionally hiding input
|
// Function to prompt user for input, optionally hiding input
|
||||||
void prompt_for_input(char *buffer, size_t size, const char *prompt, int hide_input)
|
void prompt_for_input(char *buffer, size_t size, const char *prompt,
|
||||||
|
int hide_input)
|
||||||
{
|
{
|
||||||
printf("%s", prompt);
|
printf("%s", prompt);
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue