diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-08-20 22:46:33 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-08-20 22:46:33 +0000 |
commit | d67cfd281f05bc48f6a8f1a2b3ebecc840f6c447 (patch) | |
tree | 0750ec06443aca68f749a46b0d060db00564b1e6 /usr.sbin/amd | |
parent | aa0cb4643fc13729e7874a5eb16e9eecd90c1ced (diff) |
stdlib.h is in scope; do not cast malloc/calloc/realloc*
Diffstat (limited to 'usr.sbin/amd')
-rw-r--r-- | usr.sbin/amd/amd/nfs_start.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |