diff options
author | aldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2007-03-29 10:30:50 +0000 |
---|---|---|
committer | aldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2007-03-29 10:30:50 +0000 |
commit | 8924a9f2bb3ad3f3eb6e814ab0304bf7874ad47e (patch) | |
tree | 5031fd816b1df09eaa897530a37ce814bba95011 /findutils/grep.c | |
parent | bb59a35c64bcee0dea8f8fb8bed44660af4bcaf2 (diff) | |
download | busybox-w32-8924a9f2bb3ad3f3eb6e814ab0304bf7874ad47e.tar.gz busybox-w32-8924a9f2bb3ad3f3eb6e814ab0304bf7874ad47e.tar.bz2 busybox-w32-8924a9f2bb3ad3f3eb6e814ab0304bf7874ad47e.zip |
- fold recurse, depthFirst and dereference params into one param flags.
Minor size improvement (-16b for size, -24b according to bloat-o-meter).
git-svn-id: svn://busybox.net/trunk/busybox@18271 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'findutils/grep.c')
-rw-r--r-- | findutils/grep.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/findutils/grep.c b/findutils/grep.c index f6ea54ed2..43810ea84 100644 --- a/findutils/grep.c +++ b/findutils/grep.c | |||
@@ -336,9 +336,9 @@ static int grep_dir(const char *dir) | |||
336 | { | 336 | { |
337 | int matched = 0; | 337 | int matched = 0; |
338 | recursive_action(dir, | 338 | recursive_action(dir, |
339 | /* recurse= */ 1, | 339 | /* recurse= */ action_recurse | |
340 | /* followLinks= */ 0, | 340 | /* followLinks= */ /* no. 0 | */ |
341 | /* depthFirst= */ 1, | 341 | /* depthFirst= */ action_depthFirst, |
342 | /* fileAction= */ file_action_grep, | 342 | /* fileAction= */ file_action_grep, |
343 | /* dirAction= */ NULL, | 343 | /* dirAction= */ NULL, |
344 | /* userData= */ &matched, | 344 | /* userData= */ &matched, |