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_warn/pam_warn.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/pam_warn/pam_warn.c') diff --git a/modules/pam_warn/pam_warn.c b/modules/pam_warn/pam_warn.c index f167ea91..ee787e73 100644 --- a/modules/pam_warn/pam_warn.c +++ b/modules/pam_warn/pam_warn.c @@ -28,7 +28,7 @@ /* some syslogging */ #define OBTAIN(item, value, default_value) do { \ - (void) pam_get_item(pamh, item, (const void **) &value); \ + (void) pam_get_item(pamh, item, &value); \ value = value ? value : default_value ; \ } while (0) @@ -45,7 +45,7 @@ static void _pam_log(int err, const char *format, ...) static void log_items(pam_handle_t *pamh, const char *function) { - const char *service=NULL, *user=NULL, *terminal=NULL, + const void *service=NULL, *user=NULL, *terminal=NULL, *rhost=NULL, *ruser=NULL; OBTAIN(PAM_SERVICE, service, ""); -- cgit v1.2.3