summaryrefslogtreecommitdiff
path: root/do_lines.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-10-15 13:10:52 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-10-15 13:10:52 -0700
commitc420f450d0a2b1f26d4043334bb8b6524fea4b07 (patch)
treec78fad4226f66e4003a2991a26d31cf11298a196 /do_lines.c
parent2900d7a7e7929414268cb142bf00c57d370e1396 (diff)
Stop casting return value of malloc() and calloc()
Not needed in C89 and later, and may hide errors Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'do_lines.c')
-rw-r--r--do_lines.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/do_lines.c b/do_lines.c
index de9608d..1cead86 100644
--- a/do_lines.c
+++ b/do_lines.c
@@ -50,7 +50,7 @@ GenerateLines(XParms xp, Parms p, Bool ddashed)
size4 = 4 * (size+1);
half = (size + 19) / 20;
- points = (XPoint *)malloc((p->objects+1) * sizeof(XPoint));
+ points = malloc((p->objects+1) * sizeof(XPoint));
/* All this x, x1, x1inc, etc. stuff is to create a pattern that
(1) scans down the screen vertically