comparison: ucx/list.c
ucx/list.c
- changeset 31
- 91ac86557290
- parent 27
- 22644e2572bc
- child 35
- fdabd1240b69
equal
deleted
inserted
replaced
116 } else { |
116 } else { |
117 UcxList *f = l; |
117 UcxList *f = l; |
118 while (f->next != NULL && f->next != e) { |
118 while (f->next != NULL && f->next != e) { |
119 f = f->next; |
119 f = f->next; |
120 } |
120 } |
121 /* perform remove iff this element is found in this list */ |
121 /* perform remove if this element is found in this list */ |
122 if (f->next == e) { |
122 if (f->next == e) { |
123 f->next = e->next; |
123 f->next = e->next; |
124 free(e); |
124 free(e); |
125 } |
125 } |
126 } |
126 } |