From c420f450d0a2b1f26d4043334bb8b6524fea4b07 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sat, 15 Oct 2022 13:10:52 -0700 Subject: Stop casting return value of malloc() and calloc() Not needed in C89 and later, and may hide errors Signed-off-by: Alan Coopersmith --- do_dots.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'do_dots.c') diff --git a/do_dots.c b/do_dots.c index a02cb10..38944e0 100644 --- a/do_dots.c +++ b/do_dots.c @@ -31,7 +31,7 @@ InitDots(XParms xp, Parms p, int64_t reps) { pgc = xp->fggc; - points = (XPoint *)malloc(p->objects * sizeof(XPoint)); + points = malloc(p->objects * sizeof(XPoint)); for (int i = 0; i != p->objects; i++) { points[i].x = 2 * (i/MAXROWS); -- cgit v1.2.3