summaryrefslogtreecommitdiff
path: root/do_blt.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_blt.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_blt.c')
-rw-r--r--do_blt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/do_blt.c b/do_blt.c
index b44eb42..318fb03 100644
--- a/do_blt.c
+++ b/do_blt.c
@@ -149,8 +149,8 @@ InitCopyLocations(int size, int mul, int div,
x2 = width;
y2 = height;
- *ap = a = (XSegment *)malloc(reps * sizeof(XSegment));
- *bp = b = (XSegment *)malloc(reps * sizeof(XSegment));
+ *ap = a = malloc(reps * sizeof(XSegment));
+ *bp = b = malloc(reps * sizeof(XSegment));
for (int i = 0; i != reps; i++) {
a[i].x1 = x1 * div / mul;
a[i].y1 = y1 * div / mul;