summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorpfg <pfg@FreeBSD.org>2016-05-01 02:31:22 +0000
committerpfg <pfg@FreeBSD.org>2016-05-01 02:31:22 +0000
commit910598cf7dbded8d863c47d3126740ca306640c7 (patch)
tree1ef73fc076f8a43fde875f7de658e658f5d99211 /sbin
parent99c72370d143d76721d8a3da55177b362925bac6 (diff)
downloadFreeBSD-src-910598cf7dbded8d863c47d3126740ca306640c7.zip
FreeBSD-src-910598cf7dbded8d863c47d3126740ca306640c7.tar.gz
restore: drop casts for calloc().
Diffstat (limited to 'sbin')
-rw-r--r--sbin/restore/symtab.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sbin/restore/symtab.c b/sbin/restore/symtab.c
index 7da7cc3..ec4a744 100644
--- a/sbin/restore/symtab.c
+++ b/sbin/restore/symtab.c
@@ -535,9 +535,8 @@ initsymtable(char *filename)
vprintf(stdout, "Initialize symbol table.\n");
if (filename == NULL) {
entrytblsize = maxino / HASHFACTOR;
- entry = (struct entry **)
- calloc((unsigned)entrytblsize, sizeof(struct entry *));
- if (entry == (struct entry **)NULL)
+ entry = calloc((unsigned)entrytblsize, sizeof(struct entry *));
+ if (entry == NULL)
panic("no memory for entry table\n");
ep = addentry(".", ROOTINO, NODE);
ep->e_flags |= NEW;
OpenPOWER on IntegriCloud