mountd: Remove unneeded cast

Reported by:	kib
MFC after:	1 week
X MFC With:	r324007
This commit is contained in:
Emmanuel Vadot 2017-09-26 11:11:17 +00:00
parent c13f1d82c8
commit 89b859e39a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=324012

View File

@ -1936,7 +1936,7 @@ add_expdir(struct dirlist **dpp, char *cp, int len)
{
struct dirlist *dp;
dp = (struct dirlist *)malloc(sizeof (struct dirlist));
dp = malloc(sizeof (struct dirlist));
if (dp == (struct dirlist *)NULL)
out_of_mem();
dp->dp_left = *dpp;