summaryrefslogtreecommitdiff
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
parent7f43a321e59b998e731b36039b744138a2d5b776 (diff)
downloadxorg-lib-libXau-3db78d0fa60e07a4ffda61a19849ad30623f70cf.tar.gz
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.c2
-rw-r--r--AuRead.c2
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;
}
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);