From 12527d70ac3ee78a92df849bdf7fc144c0cfb7e2 Mon Sep 17 00:00:00 2001 From: "Pedro F. Giffuni" Date: Sun, 1 May 2016 02:31:22 +0000 Subject: [PATCH] restore: drop casts for calloc(). --- sbin/restore/symtab.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sbin/restore/symtab.c b/sbin/restore/symtab.c index 7da7cc398ea0..ec4a744a5aeb 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;