diff options
| author | Arthur de Jong <arthur@arthurdejong.org> | 2013-11-25 18:27:36 +0100 |
|---|---|---|
| committer | Arthur de Jong <arthur@arthurdejong.org> | 2013-11-25 18:27:36 +0100 |
| commit | 23a41ce888caaea871bf3c20c83136e3f6002f2a (patch) | |
| tree | 4dc034b08ddbd8acc2a08fc79a06d55f0471ef7d /compat/pam_prompt.c | |
| parent | 81bfb8bac4b32f27a187f92dde6c8f83c738d83d (diff) | |
Add a test for pam_get_item() argument type
This checks whether pam_get_item() takes a const void ** or void ** item
value argument and defines a PAM_ITEM_CONST macro that is const when it
should. This avoids some compiler warnings.
Diffstat (limited to 'compat/pam_prompt.c')
| -rw-r--r-- | compat/pam_prompt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compat/pam_prompt.c b/compat/pam_prompt.c index d2fd761..8a9a8a8 100644 --- a/compat/pam_prompt.c +++ b/compat/pam_prompt.c @@ -38,7 +38,7 @@ int pam_prompt(pam_handle_t *pamh, int style, char **response, struct pam_message msg, *pmsg; struct pam_response *resp; /* the the conversion function */ - rc = pam_get_item(pamh, PAM_CONV, (const void **)&aconv); + rc = pam_get_item(pamh, PAM_CONV, (PAM_ITEM_CONST void **)&aconv); if (rc != PAM_SUCCESS) return rc; /* make the message string */ |
