summaryrefslogtreecommitdiff
path: root/sbin/dump/main.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-08-20 22:02:22 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-08-20 22:02:22 +0000
commit999d668af49ba65ca209316fb879a8459e9f850e (patch)
treec9473babdf7ff29e941f183a4a1929fba6c63699 /sbin/dump/main.c
parent9e6263b04dc3a7a8ef2f02175efe20fe4ab2097a (diff)
<stdlib.h> is included, so do not need to cast result from
malloc, calloc, realloc* ok krw millert
Diffstat (limited to 'sbin/dump/main.c')
-rw-r--r--sbin/dump/main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/dump/main.c b/sbin/dump/main.c
index 93bcfc3c4ad..59fbbc21281 100644
--- a/sbin/dump/main.c
+++ b/sbin/dump/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.56 2015/05/23 05:17:20 guenther Exp $ */
+/* $OpenBSD: main.c,v 1.57 2015/08/20 22:02:20 deraadt Exp $ */
/* $NetBSD: main.c,v 1.14 1997/06/05 11:13:24 lukem Exp $ */
/*-
@@ -450,9 +450,9 @@ main(int argc, char *argv[])
#endif
maxino = sblock->fs_ipg * sblock->fs_ncg;
mapsize = roundup(howmany(maxino, NBBY), TP_BSIZE);
- usedinomap = (char *)calloc((unsigned) mapsize, sizeof(char));
- dumpdirmap = (char *)calloc((unsigned) mapsize, sizeof(char));
- dumpinomap = (char *)calloc((unsigned) mapsize, sizeof(char));
+ usedinomap = calloc((unsigned) mapsize, sizeof(char));
+ dumpdirmap = calloc((unsigned) mapsize, sizeof(char));
+ dumpinomap = calloc((unsigned) mapsize, sizeof(char));
tapesize = 3 * (howmany(mapsize * sizeof(char), TP_BSIZE) + 1);
nonodump = spcl.c_level < honorlevel;