]> diplodocus.org Git - nmh/commitdiff
annosbr.c: free(3) takes void pointer; don't cast non-const pointer.
authorRalph Corderoy <ralph@inputplus.co.uk>
Sun, 24 Sep 2017 11:56:26 +0000 (12:56 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Sun, 24 Sep 2017 11:56:26 +0000 (12:56 +0100)
(const pointers are another whole can of worms, and their const
poisoning causes much noise for little benefit.)

uip/annosbr.c

index b9b725c2f5f8cacb8d5020483dc571d4b8d8be9e..cadfa637998a65d3b38fb4a3271b55577cb88110 100644 (file)
@@ -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 {