diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-04-16 15:57:02 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-04-16 15:57:02 -0700 |
commit | 55cc3615df9045684c70293dcfcbaa26371e46ad (patch) | |
tree | bac101a118e68b01fcc88a0c6ebe7506fb1cac84 | |
parent | cda8cd860d7cbbcab8da5d0bb28b0e55b35c000f (diff) |
Stop casting arguments to free()
This was needed for some pre-ANSI systems that declared free() to take
'char *' instead of 'void *' arguments, but hasn't been needed in decades.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | makeform.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -115,7 +115,7 @@ parse_name_and_exit_code_list (char *buttonlist, ButtonRecord **brptr) cp = malloc (len + 1); if (!cp) { - (void) free ((char *) br); + (void) free (br); return -1; } copy = cp; @@ -164,7 +164,7 @@ parse_name_and_exit_code_list (char *buttonlist, ButtonRecord **brptr) fprintf (stderr, "%s: internal error, found extra pairs (should be %d)\n", ProgramName, shouldfind); - (void) free ((char *) br); + (void) free (br); (void) free (copy); return -1; } @@ -183,7 +183,7 @@ parse_name_and_exit_code_list (char *buttonlist, ButtonRecord **brptr) if (npairs != shouldfind) { fprintf (stderr, "%s: internal error found %d instead of %d pairs\n", ProgramName, npairs, shouldfind); - (void) free ((char *) br); + (void) free (br); (void) free (copy); return -1; } |