From da3bc2fc01c2443486ac1d241c4a09eaa71083c6 Mon Sep 17 00:00:00 2001 From: Tobias Stoeckmann Date: Sat, 11 Nov 2023 12:11:50 +0100 Subject: 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 --- libpam_misc/misc_conv.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libpam_misc') 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; -- cgit v1.2.3