From 3e816c1252cc55e3763f946622129d31ea1f0f20 Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Thu, 29 Mar 2007 10:30:50 +0000 Subject: - fold recurse, depthFirst and dereference params into one param flags. Minor size improvement (-16b for size, -24b according to bloat-o-meter). --- findutils/find.c | 14 ++++++-------- findutils/grep.c | 6 +++--- 2 files changed, 9 insertions(+), 11 deletions(-) (limited to 'findutils') diff --git a/findutils/find.c b/findutils/find.c index e98d995a4..c043fbc7d 100644 --- a/findutils/find.c +++ b/findutils/find.c @@ -574,7 +574,7 @@ static action*** parse_params(char **argv) int find_main(int argc, char **argv); int find_main(int argc, char **argv) { - int dereference = FALSE; + bool dereference = FALSE; char *arg; char **argp; int i, firstopt, status = EXIT_SUCCESS; @@ -632,13 +632,11 @@ int find_main(int argc, char **argv) for (i = 1; i < firstopt; i++) { if (!recursive_action(argv[i], - TRUE, // recurse - dereference, // follow links - FALSE, // depth first - fileAction, // file action - fileAction, // dir action - NULL, // user data - 0)) // depth + action_recurse|(1<