svn commit: r298873 - head/sbin/restore
Pedro F. Giffuni
pfg at FreeBSD.org
Sun May 1 02:31:23 UTC 2016
Author: pfg
Date: Sun May 1 02:31:22 2016
New Revision: 298873
URL: https://svnweb.freebsd.org/changeset/base/298873
Log:
restore: drop casts for calloc().
Modified:
head/sbin/restore/symtab.c
Modified: head/sbin/restore/symtab.c
==============================================================================
--- head/sbin/restore/symtab.c Sun May 1 02:24:05 2016 (r298872)
+++ head/sbin/restore/symtab.c Sun May 1 02:31:22 2016 (r298873)
@@ -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;
More information about the svn-src-head
mailing list