diff options
Diffstat (limited to 'find.c')
-rw-r--r-- | find.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 | ||