From 6075b2aee08f0ed6e4380c28e8f5152a52fad773 Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Mon, 2 Jun 2008 19:23:47 +0000 Subject: [PATCH] - 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modutils/depmod.c b/modutils/depmod.c index 09d31f4c0..733cd95bf 100644 --- a/modutils/depmod.c +++ b/modutils/depmod.c @@ -221,7 +221,7 @@ int depmod_main(int ATTRIBUTE_UNUSED argc, char **argv) if (!strcmp(all->name, deps->data)) { llist_t *implied = all->dependencies; while (implied) { - /* erm, nicer would be to just + /* XXX:FIXME: erm, it would be nicer to just * llist_unlink(&mods->dependencies, implied) */ llist_t *prune = mods->dependencies; while (prune) { -- 2.25.1