]> diplodocus.org Git - nmh/commitdiff
Don't need to cast to `char *' for free(3) these days.
authorRalph Corderoy <ralph@inputplus.co.uk>
Sat, 22 Oct 2016 12:45:19 +0000 (13:45 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Sat, 22 Oct 2016 12:45:19 +0000 (13:45 +0100)
uip/mhlsbr.c

index b2c6f07..297d6df 100644 (file)
@@ -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;