From 0a7fe016a03184815b03fe92d50c58e67c8c05fc Mon Sep 17 00:00:00 2001 From: Thorsten Kukuk Date: Thu, 9 Jun 2005 17:29:18 +0000 Subject: Relevant BUGIDs: none Purpose of commit: cleanup Commit summary: --------------- Fix all occurrence of dereferencing type-punned pointer will break strict-aliasing rules warnings --- modules/pam_issue/pam_issue.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'modules/pam_issue/pam_issue.c') diff --git a/modules/pam_issue/pam_issue.c b/modules/pam_issue/pam_issue.c index 5b3c864b..5c93da88 100644 --- a/modules/pam_issue/pam_issue.c +++ b/modules/pam_issue/pam_issue.c @@ -50,7 +50,7 @@ int pam_sm_authenticate(pam_handle_t *pamh, int flags, int argc, FILE *fd; int parse_esc = 1; char *prompt_tmp = NULL; - const char *cur_prompt = NULL; + const void *cur_prompt = NULL; struct stat st; char *issue_file = NULL; @@ -91,8 +91,7 @@ int pam_sm_authenticate(pam_handle_t *pamh, int flags, int argc, return PAM_IGNORE; } - retval = pam_get_item(pamh, PAM_USER_PROMPT, - (const void **) &cur_prompt); + retval = pam_get_item(pamh, PAM_USER_PROMPT, &cur_prompt); if (retval != PAM_SUCCESS) { fclose(fd); if (issue_file) -- cgit v1.2.3