Lines Matching defs:cur
307 struct addrinfo *cur = *next;
309 if (cur->ai_family == base->ai_family) {
310 next = &cur->ai_next;
313 if (cur == base->ai_next) {
316 base = cur;
320 // Unchain cur from the rest of the list from its current spot.
321 *next = cur->ai_next;
322 // Hook in cur directly after base.
323 cur->ai_next = base->ai_next;
324 base->ai_next = cur;
325 // Restart with a new base. We know that before moving the cur element,
326 // everything between the previous base and cur had the same family,
327 // different from cur->ai_family. Therefore, we can keep next pointing
329 // cur.
330 base = cur->ai_next;