summaryrefslogtreecommitdiff
path: root/AuRead.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-07-09 11:00:50 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-07-09 11:01:17 -0700
commit3db78d0fa60e07a4ffda61a19849ad30623f70cf (patch)
tree3e6c07002b81953dbb83ed68c8a1d07a01e4b842 /AuRead.c
parent7f43a321e59b998e731b36039b744138a2d5b776 (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>
Diffstat (limited to 'AuRead.c')
-rw-r--r--AuRead.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/AuRead.c b/AuRead.c
index 89430ee..65cabde 100644
--- a/AuRead.c
+++ b/AuRead.c
@@ -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);