From: Ralph Corderoy Date: Sat, 22 Oct 2016 12:45:19 +0000 (+0100) Subject: Don't need to cast to `char *' for free(3) these days. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/adf1b79a42518913f5da2f3f8b8f4866eaf195b3?hp=47a7d63953e4df110cba99d590a8432845382a51 Don't need to cast to `char *' for free(3) these days. --- diff --git a/uip/mhlsbr.c b/uip/mhlsbr.c index b2c6f070..297d6df7 100644 --- a/uip/mhlsbr.c +++ b/uip/mhlsbr.c @@ -1222,7 +1222,7 @@ mcomp_format (struct mcomp *c1, struct mcomp *c2) mh_xfree(p->pq_text); mh_xfree(p->pq_error); q = p->pq_next; - free ((char *) p); + free(p); } c2->c_text = add ("\n", c2->c_text); @@ -1272,7 +1272,7 @@ free_queue (struct mcomp **head, struct mcomp **tail) mh_xfree(c1->c_nfs); if (c1->c_fmt) fmt_free (c1->c_fmt, 0); - free ((char *) c1); + free(c1); } *head = *tail = NULL;