diff options
author | Tobias Stoeckmann <tobias@stoeckmann.org> | 2023-11-11 12:11:50 +0100 |
---|---|---|
committer | Dmitry V. Levin <github.dl@altlinux.org> | 2023-11-12 19:43:03 +0000 |
commit | da3bc2fc01c2443486ac1d241c4a09eaa71083c6 (patch) | |
tree | a35731c8f3ae9de23dce790ba12bc42204dda8ec /modules/pam_time | |
parent | e3e3b06fbdb917eaff24e1a6860654b99b99faa0 (diff) | |
download | pam-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 'modules/pam_time')
-rw-r--r-- | modules/pam_time/pam_time.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/pam_time/pam_time.c b/modules/pam_time/pam_time.c index 27913b9a..a45d8f49 100644 --- a/modules/pam_time/pam_time.c +++ b/modules/pam_time/pam_time.c @@ -139,7 +139,7 @@ read_field(const pam_handle_t *pamh, int fd, char **buf, int *from, int *state, /* is buf set ? */ if (! *buf) { - *buf = (char *) calloc(1, PAM_TIME_BUFLEN+1); + *buf = calloc(1, PAM_TIME_BUFLEN+1); if (! *buf) { pam_syslog(pamh, LOG_CRIT, "out of memory"); D(("no memory")); |