of indirection. This allows us to update the chain when
we remove a child and saves us managing several variables around
the loop mechanism.
Signed-off-by: David Gould
Acked-by: Jeff King
---
PATCHv2 updates PATCH only in the commit message: Peff suggested
both a helpful subject and a more-informative
Iterate through children_to_clean using 'next' fields but with an
extra level of indirection. This allows us to update the chain when
we remove a child and saves us managing several variables around
the loop mechanism.
---
run-command.c | 12 ++--
1 file changed, 6 insertions(+), 6 delet
David a chance to submit his first-ever patch to
git.
OK. David, is it OK for us to expect a patch from you sometime not
in distant future (it is an old bug we survived for a long time and
nothing ultra-urgent)?
--
David Gould, Personal Trainer
Register of Kettlebell Professionals
_to_clean; p; last = &p->next, p = p->next) {
...
Cheers,
David
--
David Gould, Personal Trainer
Register of Kettlebell Professionals
INWA Nordic Walking Instructor
Optimise Fitness Ltd -- fit for life
01264 720709
www.optimisefitness.com
--
To unsubscribe from th
4 matches
Mail list logo