From 090c5c607ec682e5cfc03bbc745cd1ed28d5d6ce Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Mon, 31 Dec 2012 14:38:13 -0600 Subject: Make dirtree_handle_callback() start with dirtree_ like the rest of the dirtree functions. --- toys/posix/chgrp.c | 2 +- toys/posix/du.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'toys') diff --git a/toys/posix/chgrp.c b/toys/posix/chgrp.c index 802d8f8f..6e1e16f0 100644 --- a/toys/posix/chgrp.c +++ b/toys/posix/chgrp.c @@ -104,7 +104,7 @@ void chgrp_main(void) for (s=toys.optargs+1; *s; s++) { struct dirtree *new = dirtree_add_node(0, *s, hl); - if (new) handle_callback(new, do_chgrp); + if (new) dirtree_handle_callback(new, do_chgrp); else toys.exitval = 1; } diff --git a/toys/posix/du.c b/toys/posix/du.c index 6c09aec6..5dc3ee5c 100644 --- a/toys/posix/du.c +++ b/toys/posix/du.c @@ -206,7 +206,7 @@ void du_main(void) struct dirtree *root = dirtree_add_node(0, path, symfollow); if(root) { TT.st_dev = root->st.st_dev; - handle_callback(root, do_du); //this will recurse thru the DIR children. + dirtree_handle_callback(root, do_du); // recurse thru the DIR children. } toys.optargs++; } -- cgit v1.2.3