diff options
Diffstat (limited to 'modules/pam_debug/pam_debug.c')
-rw-r--r-- | modules/pam_debug/pam_debug.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/modules/pam_debug/pam_debug.c b/modules/pam_debug/pam_debug.c index 414806b2..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, @@ -40,7 +34,7 @@ static int parse_args(int retval, const char *event, int i; for (i=0; i<argc; ++i) { - int length = strlen(event); + size_t length = strlen(event); if (!strncmp(event, argv[i], length) && (argv[i][length] == '=')) { int j; const char *return_string = argv[i] + (length+1); |