aboutsummaryrefslogtreecommitdiff
path: root/findutils/find.c
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>1999-10-17 05:43:39 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>1999-10-17 05:43:39 +0000
commitc45e09cde722eae8210c601491285aabd26307c3 (patch)
tree17187e3f6988830c0e329378e552995d083080ed /findutils/find.c
parentc499de20c6b10ba483515e48aa61c4e5bb642f7c (diff)
downloadbusybox-w32-c45e09cde722eae8210c601491285aabd26307c3.tar.gz
busybox-w32-c45e09cde722eae8210c601491285aabd26307c3.tar.bz2
busybox-w32-c45e09cde722eae8210c601491285aabd26307c3.zip
Some fixes and such
git-svn-id: svn://busybox.net/trunk/busybox@29 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'findutils/find.c')
-rw-r--r--findutils/find.c8
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
38static int fileAction(const char *fileName) 38static 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
47static int dirAction(const char *fileName) 47static 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)
70int find_main(int argc, char **argv) 70int 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