From: Ralph Corderoy Date: Sun, 24 Sep 2017 11:56:26 +0000 (+0100) Subject: annosbr.c: free(3) takes void pointer; don't cast non-const pointer. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/f5bfa5864d2feef66948fde764c376b7a9f8b839?ds=inline;hp=91634892c4d6b155c26fbc9bd70dfe0ea94462c3 annosbr.c: free(3) takes void pointer; don't cast non-const pointer. (const pointers are another whole can of worms, and their const poisoning causes much noise for little benefit.) --- diff --git a/uip/annosbr.c b/uip/annosbr.c index b9b725c2..cadfa637 100644 --- a/uip/annosbr.c +++ b/uip/annosbr.c @@ -332,7 +332,7 @@ annosbr (int fd, char *file, char *comp, char *text, bool inplace, bool datesw, * Get rid of the field buffer because we're done with it. */ - free((void *)field); + free(field); } else {