Date: Sun, 1 May 2016 02:31:22 +0000 (UTC) From: "Pedro F. Giffuni" <pfg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r298873 - head/sbin/restore Message-ID: <201605010231.u412VMVX065813@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605010231.u412VMVX065813>