diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-08-20 22:02:22 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-08-20 22:02:22 +0000 |
commit | 999d668af49ba65ca209316fb879a8459e9f850e (patch) | |
tree | c9473babdf7ff29e941f183a4a1929fba6c63699 /sbin/isakmpd/isakmpd.c | |
parent | 9e6263b04dc3a7a8ef2f02175efe20fe4ab2097a (diff) |
<stdlib.h> is included, so do not need to cast result from
malloc, calloc, realloc*
ok krw millert
Diffstat (limited to 'sbin/isakmpd/isakmpd.c')
-rw-r--r-- | sbin/isakmpd/isakmpd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/isakmpd/isakmpd.c b/sbin/isakmpd/isakmpd.c index a6669340362..5d30e63e7e3 100644 --- a/sbin/isakmpd/isakmpd.c +++ b/sbin/isakmpd/isakmpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: isakmpd.c,v 1.102 2015/02/07 02:09:13 deraadt Exp $ */ +/* $OpenBSD: isakmpd.c,v 1.103 2015/08/20 22:02:21 deraadt Exp $ */ /* $EOM: isakmpd.c,v 1.54 2000/10/05 09:28:22 niklas Exp $ */ /* @@ -418,11 +418,11 @@ main(int argc, char *argv[]) /* Allocate the file descriptor sets just big enough. */ n = getdtablesize(); mask_size = howmany(n, NFDBITS) * sizeof(fd_mask); - rfds = (fd_set *) malloc(mask_size); + rfds = malloc(mask_size); if (!rfds) log_fatal("main: malloc (%lu) failed", (unsigned long)mask_size); - wfds = (fd_set *) malloc(mask_size); + wfds = malloc(mask_size); if (!wfds) log_fatal("main: malloc (%lu) failed", (unsigned long)mask_size); |