From 08db33b92980cd23f97f91db2a0be97bec229e30 Mon Sep 17 00:00:00 2001 From: manu Date: Tue, 26 Sep 2017 11:11:17 +0000 Subject: [PATCH] mountd: Remove unneeded cast Reported by: kib MFC after: 1 week X MFC With: r324007 --- usr.sbin/mountd/mountd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/mountd/mountd.c b/usr.sbin/mountd/mountd.c index 27df19e7614e..142d50bf846f 100644 --- a/usr.sbin/mountd/mountd.c +++ b/usr.sbin/mountd/mountd.c @@ -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;