- add FIXME. Perhaps somebody is interrested in looking into this one.
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Mon, 2 Jun 2008 19:23:47 +0000 (19:23 -0000)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Mon, 2 Jun 2008 19:23:47 +0000 (19:23 -0000)
commit6075b2aee08f0ed6e4380c28e8f5152a52fad773
tree00e3ff3493dd5b737e59b8ff1632c2314016f14a
parentc2741e1f72d77e8bd46c932d6d7b12286d5d338c
- add FIXME. Perhaps somebody is interrested in looking into this one.
  We would try to be clever and compare the *data instead of the *elt.

Somethink like this might be of more general use:
/* Unlink arbitrary element from the list that contains data */
void llist_unlink_data(llist_t **head, void *data)
{
    llist_t *elt;

    for (elt = *head; elt; elt = elt->link) {
        if (elt->data == data) {
            llist_unlink(elt);
            return;
        }
    }
}
modutils/depmod.c