mountd: Remove unneeded cast

Reported by:	kib
MFC after:	1 week
X MFC With:	r324007
This commit is contained in:
manu 2017-09-26 11:11:17 +00:00
parent 16b20104c4
commit 08db33b929

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;