summaryrefslogtreecommitdiffstats
path: root/usr.sbin/amd
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2015-08-20 22:46:32 +0000
committerderaadt <deraadt@openbsd.org>2015-08-20 22:46:32 +0000
commit74590bb3de02617477eefe3939bcaf044841b987 (patch)
tree5fb279a7723f2bdab4edeb77b87b8aa97f8d227e /usr.sbin/amd
parentstdlib.h is in scope; do not cast malloc/calloc/realloc* (diff)
downloadwireguard-openbsd-74590bb3de02617477eefe3939bcaf044841b987.tar.xz
wireguard-openbsd-74590bb3de02617477eefe3939bcaf044841b987.zip
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.c4
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);