aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-06-02 19:23:47 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-06-02 19:23:47 +0000
commit6075b2aee08f0ed6e4380c28e8f5152a52fad773 (patch)
tree00e3ff3493dd5b737e59b8ff1632c2314016f14a
parentc2741e1f72d77e8bd46c932d6d7b12286d5d338c (diff)
downloadbusybox-w32-6075b2aee08f0ed6e4380c28e8f5152a52fad773.tar.gz
busybox-w32-6075b2aee08f0ed6e4380c28e8f5152a52fad773.tar.bz2
busybox-w32-6075b2aee08f0ed6e4380c28e8f5152a52fad773.zip
- 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; } } }
-rw-r--r--modutils/depmod.c2
1 files changed, 1 insertions, 1 deletions
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)
221 if (!strcmp(all->name, deps->data)) { 221 if (!strcmp(all->name, deps->data)) {
222 llist_t *implied = all->dependencies; 222 llist_t *implied = all->dependencies;
223 while (implied) { 223 while (implied) {
224 /* erm, nicer would be to just 224 /* XXX:FIXME: erm, it would be nicer to just
225 * llist_unlink(&mods->dependencies, implied) */ 225 * llist_unlink(&mods->dependencies, implied) */
226 llist_t *prune = mods->dependencies; 226 llist_t *prune = mods->dependencies;
227 while (prune) { 227 while (prune) {