From 5bd3572c7584b4d444b737a366caf2419edf222c Mon Sep 17 00:00:00 2001 From: hanez Date: Thu, 12 Dec 2024 00:17:22 +0100 Subject: [PATCH] Code style fixes. --- checkpw.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/checkpw.c b/checkpw.c index ffdf126..4acbd99 100644 --- a/checkpw.c +++ b/checkpw.c @@ -30,7 +30,8 @@ #define VERSION 1_0_3 // Custom data structure to hold user-entered password -struct pam_credentials { +struct pam_credentials +{ const char *password; }; @@ -63,7 +64,7 @@ int pam_conversation(int num_msg, const struct pam_message **msg, return PAM_SUCCESS; } -int authenticate(const char *username, const char *password, int verbose) +int authenticate(const char *username, const char *password, int verbose) { int retval; pam_handle_t *pamh = NULL; @@ -111,7 +112,8 @@ int authenticate(const char *username, const char *password, int verbose) } // 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); fflush(stdout);