From 2dfe28b338e148651a12e76d26a20aeb65998ecc Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Thu, 15 Jan 2015 01:47:37 +0000 Subject: Cosmetic fix: avltree_iter -> avltree_iter_nocancel --- src/minutils/s6-ps.c | 2 +- src/minutils/s6ps_otree.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/minutils/s6-ps.c b/src/minutils/s6-ps.c index 5a22068..f4f06bd 100644 --- a/src/minutils/s6-ps.c +++ b/src/minutils/s6-ps.c @@ -296,7 +296,7 @@ int main (int argc, char const *const *argv) strerr_diefu1sys(111, "avltreeb_insert") ; if (flagtree) s6ps_otree(p, n+1, &pidtree.info, orderedlist) ; - else avltreeb_iter(&pidtree, &fillo_notree, orderedlist) ; + else avltreeb_iter_nocancel(&pidtree, avltreeb_totalsize(&pidtree), &fillo_notree, orderedlist) ; } diff --git a/src/minutils/s6ps_otree.c b/src/minutils/s6ps_otree.c index 5e96409..562a66d 100644 --- a/src/minutils/s6ps_otree.c +++ b/src/minutils/s6ps_otree.c @@ -78,7 +78,7 @@ void s6ps_otree (pscan_t *p, unsigned int n, avltreen *pidtree, unsigned int *or unsigned int cpos[n] ; ptreeiter_t blah = { .childlist = childlist, .childindex = childindex, .ppindex = orderedlist, .cpos = cpos } ; for (i = 0 ; i < n ; i++) cpos[i] = 0 ; - avltreen_iter(pidtree, &fillchildlist, &blah) ; + avltreen_iter_nocancel(pidtree, avltreen_totalsize(pidtree), &fillchildlist, &blah) ; } /* If we have init, make it the last in the orphan list */ -- cgit v1.2.3