diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-07-09 11:00:50 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-07-09 11:01:17 -0700 |
commit | 3db78d0fa60e07a4ffda61a19849ad30623f70cf (patch) | |
tree | 3e6c07002b81953dbb83ed68c8a1d07a01e4b842 | |
parent | 7f43a321e59b998e731b36039b744138a2d5b776 (diff) |
Remove unnnecessary casts from malloc() and free() calls
These are not needed in C89 and later.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | AuDispose.c | 2 | ||||
-rw-r--r-- | AuRead.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/AuDispose.c b/AuDispose.c index b24d21c..791232a 100644 --- a/AuDispose.c +++ b/AuDispose.c @@ -45,7 +45,7 @@ XauDisposeAuth (Xauth *auth) #endif (void) free (auth->data); } - free ((char *) auth); + free (auth); } return; } @@ -95,7 +95,7 @@ XauReadAuth (FILE *auth_file) free (local.name); return NULL; } - ret = (Xauth *) malloc (sizeof (Xauth)); + ret = malloc (sizeof (Xauth)); if (!ret) { free (local.address); free (local.number); |