Home
last modified time | relevance | path

Searched refs:lastElem (Results 1 – 1 of 1) sorted by relevance

/illumos-gate/usr/src/contrib/mDNSResponder/mDNSShared/
H A DGenLinkedList.c66 void *iElem, *lastElem; in RemoveFromList() local
68 for ( iElem = pList->Head, lastElem = NULL; iElem; iElem = GETLINK( iElem, pList->LinkOffset)) { in RemoveFromList()
70 if ( lastElem) { // somewhere past the head in RemoveFromList()
71 ASSIGNLINK( lastElem, GETLINK( elem, pList->LinkOffset), pList->LinkOffset); in RemoveFromList()
76 pList->Tail = lastElem ? lastElem : NULL; in RemoveFromList()
80 lastElem = iElem; in RemoveFromList()
90 void *iElem, *lastElem; in ReplaceElem() local
95 for ( iElem = pList->Head, lastElem = NULL; iElem; iElem = GETLINK( iElem, pList->LinkOffset)) in ReplaceElem()
100 if ( lastElem) // somewhere past the head in ReplaceElem()
102 ASSIGNLINK( lastElem, newElem, pList->LinkOffset); in ReplaceElem()
[all …]