diff options
author | Tobias Stoeckmann <tobias@stoeckmann.org> | 2024-01-11 20:03:09 +0100 |
---|---|---|
committer | Dmitry V. Levin <ldv@strace.io> | 2024-01-12 17:01:04 +0000 |
commit | cf80332ddb98c109c5abc35c74d6dd371ca7fa5b (patch) | |
tree | 40d11a8b7c244a53e1a3e76ebd6c4024e462ef17 /modules/pam_debug | |
parent | b007c451f9bb8044ecd499dde494762e36cab394 (diff) | |
download | pam-cf80332ddb98c109c5abc35c74d6dd371ca7fa5b.tar.gz pam-cf80332ddb98c109c5abc35c74d6dd371ca7fa5b.tar.bz2 pam-cf80332ddb98c109c5abc35c74d6dd371ca7fa5b.zip |
pam_debug: simplify state function
The return value of function state is never checked.
Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Diffstat (limited to 'modules/pam_debug')
-rw-r--r-- | modules/pam_debug/pam_debug.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/modules/pam_debug/pam_debug.c b/modules/pam_debug/pam_debug.c index 37bf8b95..0def5160 100644 --- a/modules/pam_debug/pam_debug.c +++ b/modules/pam_debug/pam_debug.c @@ -21,17 +21,11 @@ /* --- authentication management functions --- */ -static int state(pam_handle_t *pamh, const char *text) +static void state(pam_handle_t *pamh, const char *text) { - int retval; - - retval = pam_info (pamh, "%s", text); - - if (retval != PAM_SUCCESS) { + if (pam_info(pamh, "%s", text) != PAM_SUCCESS) { D(("pam_info failed")); } - - return retval; } static int parse_args(int retval, const char *event, |