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
commit 132b464d73
72 changed files with 343 additions and 376 deletions

View file

@ -567,7 +567,7 @@ QueueWorkProc (
{
WorkQueuePtr q;
q = (WorkQueuePtr) xalloc (sizeof *q);
q = xalloc (sizeof *q);
if (!q)
return FALSE;
q->function = function;
@ -601,7 +601,7 @@ ClientSleep (ClientPtr client, ClientSleepProcPtr function, pointer closure)
{
SleepQueuePtr q;
q = (SleepQueuePtr) xalloc (sizeof *q);
q = xalloc (sizeof *q);
if (!q)
return FALSE;
@ -681,7 +681,7 @@ _AddCallback(
{
CallbackPtr cbr;
cbr = (CallbackPtr) xalloc(sizeof(CallbackRec));
cbr = xalloc(sizeof(CallbackRec));
if (!cbr)
return FALSE;
cbr->proc = callback;
@ -824,7 +824,7 @@ CreateCallbackList(CallbackListPtr *pcbl)
int i;
if (!pcbl) return FALSE;
cbl = (CallbackListPtr) xalloc(sizeof(CallbackListRec));
cbl = xalloc(sizeof(CallbackListRec));
if (!cbl) return FALSE;
cbl->inCallback = 0;
cbl->deleted = FALSE;