- int i;
- pendingscan *psp;
-
- if (!freependingscans) {
- freependingscans=(pendingscan *)nsmalloc(POOL_PROXYSCAN,ALLOCUNIT * sizeof(pendingscan));
- for (i=0;i<(ALLOCUNIT-1);i++)
- freependingscans[i].next = freependingscans+i+1;
- freependingscans[ALLOCUNIT-1].next=NULL;
- }
-
- psp=freependingscans;
- freependingscans=psp->next;
-
- return psp;