From 74590bb3de02617477eefe3939bcaf044841b987 Mon Sep 17 00:00:00 2001 From: deraadt Date: Thu, 20 Aug 2015 22:46:32 +0000 Subject: stdlib.h is in scope; do not cast malloc/calloc/realloc* --- usr.sbin/amd/amd/nfs_start.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin/amd') diff --git a/usr.sbin/amd/amd/nfs_start.c b/usr.sbin/amd/amd/nfs_start.c index 96054c0c9c0..0af7260169c 100644 --- a/usr.sbin/amd/amd/nfs_start.c +++ b/usr.sbin/amd/amd/nfs_start.c @@ -32,7 +32,7 @@ * SUCH DAMAGE. * * from: @(#)nfs_start.c 8.1 (Berkeley) 6/6/93 - * $Id: nfs_start.c,v 1.19 2015/01/21 09:50:25 guenther Exp $ + * $Id: nfs_start.c,v 1.20 2015/08/20 22:46:32 deraadt Exp $ */ #include "am.h" @@ -159,7 +159,7 @@ rpc_pending_now(void) int fdsn; fdsn = howmany(max_fds+1, NFDBITS) * sizeof(fd_mask); - if ((fdsp = (fd_set *)malloc(fdsn)) == NULL) + if ((fdsp = malloc(fdsn)) == NULL) return(0); memset(fdsp, 0, fdsn); FD_SET(fwd_sock, fdsp); -- cgit v1.2.3-59-g8ed1b