diff options
author | Eric Andersen <andersen@codepoet.org> | 1999-10-17 05:43:39 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 1999-10-17 05:43:39 +0000 |
commit | 9b5871888989b16f94cbba5dd304ac444def3afd (patch) | |
tree | 17187e3f6988830c0e329378e552995d083080ed /findutils/find.c | |
parent | cb6e25655f894c90e4befc4bee0e66794dd6858f (diff) | |
download | busybox-w32-9b5871888989b16f94cbba5dd304ac444def3afd.tar.gz busybox-w32-9b5871888989b16f94cbba5dd304ac444def3afd.tar.bz2 busybox-w32-9b5871888989b16f94cbba5dd304ac444def3afd.zip |
Some fixes and such
Diffstat (limited to 'findutils/find.c')
-rw-r--r-- | findutils/find.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/findutils/find.c b/findutils/find.c index d618401bf..c92202b86 100644 --- a/findutils/find.c +++ b/findutils/find.c | |||
@@ -35,7 +35,7 @@ static const char find_usage[] = "find [path...] [expression]\n" | |||
35 | 35 | ||
36 | 36 | ||
37 | 37 | ||
38 | static int fileAction(const char *fileName) | 38 | static int fileAction(const char *fileName, struct stat* statbuf) |
39 | { | 39 | { |
40 | if (pattern==NULL) | 40 | if (pattern==NULL) |
41 | fprintf(stdout, "%s\n", fileName); | 41 | fprintf(stdout, "%s\n", fileName); |
@@ -44,7 +44,7 @@ static int fileAction(const char *fileName) | |||
44 | return( TRUE); | 44 | return( TRUE); |
45 | } | 45 | } |
46 | 46 | ||
47 | static int dirAction(const char *fileName) | 47 | static int dirAction(const char *fileName, struct stat* statbuf) |
48 | { | 48 | { |
49 | DIR *dir; | 49 | DIR *dir; |
50 | struct dirent *entry; | 50 | struct dirent *entry; |
@@ -70,7 +70,7 @@ static int dirAction(const char *fileName) | |||
70 | int find_main(int argc, char **argv) | 70 | int find_main(int argc, char **argv) |
71 | { | 71 | { |
72 | if (argc <= 1) { | 72 | if (argc <= 1) { |
73 | dirAction( "."); | 73 | dirAction( ".", NULL); |
74 | } | 74 | } |
75 | 75 | ||
76 | /* peel off the "find" */ | 76 | /* peel off the "find" */ |
@@ -120,7 +120,7 @@ int find_main(int argc, char **argv) | |||
120 | break; | 120 | break; |
121 | } | 121 | } |
122 | 122 | ||
123 | dirAction( directory); | 123 | dirAction( directory, NULL); |
124 | exit(TRUE); | 124 | exit(TRUE); |
125 | } | 125 | } |
126 | 126 | ||