aboutsummaryrefslogtreecommitdiff
path: root/libpam_misc
diff options
context:
space:
mode:
authorTobias Stoeckmann <tobias@stoeckmann.org>2023-11-11 12:11:50 +0100
committerDmitry V. Levin <github.dl@altlinux.org>2023-11-12 19:43:03 +0000
commitda3bc2fc01c2443486ac1d241c4a09eaa71083c6 (patch)
treea35731c8f3ae9de23dce790ba12bc42204dda8ec /libpam_misc
parente3e3b06fbdb917eaff24e1a6860654b99b99faa0 (diff)
downloadpam-da3bc2fc01c2443486ac1d241c4a09eaa71083c6.tar.gz
pam-da3bc2fc01c2443486ac1d241c4a09eaa71083c6.tar.bz2
pam-da3bc2fc01c2443486ac1d241c4a09eaa71083c6.zip
treewide: do not cast calloc/malloc/realloc
It is not required to cast the results of calloc, malloc, realloc, etc. Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Diffstat (limited to 'libpam_misc')
-rw-r--r--libpam_misc/misc_conv.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libpam_misc/misc_conv.c b/libpam_misc/misc_conv.c
index dbcd6aec..6c23fcb8 100644
--- a/libpam_misc/misc_conv.c
+++ b/libpam_misc/misc_conv.c
@@ -285,8 +285,7 @@ int misc_conv(int num_msg, const struct pam_message **msgm,
D(("allocating empty response structure array."));
- reply = (struct pam_response *) calloc(num_msg,
- sizeof(struct pam_response));
+ reply = calloc(num_msg, sizeof(struct pam_response));
if (reply == NULL) {
D(("no memory for responses"));
return PAM_CONV_ERR;