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; _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"