Lines Matching refs:lelp
296 struct logtab_ent_list *lelp, *head = NULL, *tail = NULL; in logtab_deactivate() local
316 lelp = (struct logtab_ent_list *) in logtab_deactivate()
318 if (lelp == NULL) { in logtab_deactivate()
323 lelp->lel_le = lep; in logtab_deactivate()
324 lelp->lel_next = NULL; in logtab_deactivate()
329 head = tail = lelp; in logtab_deactivate()
335 tail->lel_next = lelp; in logtab_deactivate()
336 tail = lelp; /* remember the last element */ in logtab_deactivate()
356 for (lelp = head; lelp != NULL; lelp = lelp->lel_next) in logtab_deactivate()
357 (void) logtab_putent(fd, lelp->lel_le); in logtab_deactivate()
403 struct logtab_ent_list *lelp, *next; in logtab_ent_list_free() local
408 for (lelp = head; lelp != NULL; lelp = next) { in logtab_ent_list_free()
409 if (lelp->lel_le != NULL) in logtab_ent_list_free()
410 logtab_ent_free(lelp->lel_le); in logtab_ent_list_free()
411 next = lelp->lel_next; in logtab_ent_list_free()
412 free(lelp); in logtab_ent_list_free()