Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 227311
Collapse All | Expand All

(-)xorg-server.orig/dix/resource.c (-5 / +12 lines)
Lines 478-483 Link Here
478
    return TRUE;
478
    return TRUE;
479
}
479
}
480
480
481
void
482
init_resources_with_tails(ResourcePtr *resources, ResourcePtr **tails, int j)
483
{
484
    ResourcePtr **tptr, *rptr;
485
    for (rptr = resources, tptr = tails; --j >= 0; rptr++, tptr++)
486
    {
487
	*rptr = NullResource;
488
	*tptr = rptr;
489
    }
490
}
491
481
static void
492
static void
482
RebuildTable(int client)
493
RebuildTable(int client)
483
{
494
{
Lines 501-511 Link Here
501
	xfree(tails);
512
	xfree(tails);
502
	return;
513
	return;
503
    }
514
    }
504
    for (rptr = resources, tptr = tails; --j >= 0; rptr++, tptr++)
515
    init_resources_with_tails(resources, tails, j);
505
    {
506
	*rptr = NullResource;
507
	*tptr = rptr;
508
    }
509
    clientTable[client].hashsize++;
516
    clientTable[client].hashsize++;
510
    for (j = clientTable[client].buckets,
517
    for (j = clientTable[client].buckets,
511
	 rptr = clientTable[client].resources;
518
	 rptr = clientTable[client].resources;

Return to bug 227311