From 3db78d0fa60e07a4ffda61a19849ad30623f70cf Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sat, 9 Jul 2022 11:00:50 -0700 Subject: Remove unnnecessary casts from malloc() and free() calls These are not needed in C89 and later. Signed-off-by: Alan Coopersmith --- AuRead.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'AuRead.c') 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); -- cgit v1.2.3