Remove a bunch of useless casts.

We've had void * for twenty years now people let's try to act like we
know how it works.
This commit is contained in:
Adam Jackson
2009-01-22 02:11:16 -05:00
parent 0fb4390526
commit 132b464d73
72 changed files with 343 additions and 376 deletions

View File

@@ -546,10 +546,10 @@ miFillEllipseI(
int *widths;
int *wids;
points = (DDXPointPtr)xalloc(sizeof(DDXPointRec) * arc->height);
points = xalloc(sizeof(DDXPointRec) * arc->height);
if (!points)
return;
widths = (int *)xalloc(sizeof(int) * arc->height);
widths = xalloc(sizeof(int) * arc->height);
if (!widths)
{
xfree(points);
@@ -589,10 +589,10 @@ miFillEllipseD(
int *widths;
int *wids;
points = (DDXPointPtr)xalloc(sizeof(DDXPointRec) * arc->height);
points = xalloc(sizeof(DDXPointRec) * arc->height);
if (!points)
return;
widths = (int *)xalloc(sizeof(int) * arc->height);
widths = xalloc(sizeof(int) * arc->height);
if (!widths)
{
xfree(points);
@@ -661,10 +661,10 @@ miFillArcSliceI(
slw = arc->height;
if (slice.flip_top || slice.flip_bot)
slw += (arc->height >> 1) + 1;
points = (DDXPointPtr)xalloc(sizeof(DDXPointRec) * slw);
points = xalloc(sizeof(DDXPointRec) * slw);
if (!points)
return;
widths = (int *)xalloc(sizeof(int) * slw);
widths = xalloc(sizeof(int) * slw);
if (!widths)
{
xfree(points);
@@ -725,10 +725,10 @@ miFillArcSliceD(
slw = arc->height;
if (slice.flip_top || slice.flip_bot)
slw += (arc->height >> 1) + 1;
points = (DDXPointPtr)xalloc(sizeof(DDXPointRec) * slw);
points = xalloc(sizeof(DDXPointRec) * slw);
if (!points)
return;
widths = (int *)xalloc(sizeof(int) * slw);
widths = xalloc(sizeof(int) * slw);
if (!widths)
{
xfree(points);