restore: drop casts for calloc().

This commit is contained in:
Pedro F. Giffuni 2016-05-01 02:31:22 +00:00
parent f32d2926b0
commit 12527d70ac

View File

@ -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;