759 |
|
} |
760 |
|
cdlast = NULL; /* check for it in cache list */ |
761 |
|
for (cd = (SDMatCDst *)sdc->cdList; cd != NULL; |
762 |
< |
cdlast = cd, cd = (SDMatCDst *)cd->next) |
762 |
> |
cdlast = cd, cd = cd->next) |
763 |
|
if (cd->indx == myCD.indx && (cd->calen == myCD.calen) & |
764 |
|
(cd->ob_priv == myCD.ob_priv) & |
765 |
|
(cd->ob_vec == myCD.ob_vec)) |
778 |
|
} |
779 |
|
if (cdlast != NULL) { /* move entry to head of cache list */ |
780 |
|
cdlast->next = cd->next; |
781 |
< |
cd->next = sdc->cdList; |
781 |
> |
cd->next = (SDMatCDst *)sdc->cdList; |
782 |
|
sdc->cdList = (SDCDst *)cd; |
783 |
|
} |
784 |
|
return (SDCDst *)cd; /* ready to go */ |