summaryrefslogtreecommitdiff
path: root/find.c
diff options
context:
space:
mode:
authorEric Andersen1999-10-17 05:43:39 +0000
committerEric Andersen1999-10-17 05:43:39 +0000
commit9b5871888989b16f94cbba5dd304ac444def3afd (patch)
tree17187e3f6988830c0e329378e552995d083080ed /find.c
parentcb6e25655f894c90e4befc4bee0e66794dd6858f (diff)
downloadbusybox-9b5871888989b16f94cbba5dd304ac444def3afd.zip
busybox-9b5871888989b16f94cbba5dd304ac444def3afd.tar.gz
Some fixes and such
Diffstat (limited to 'find.c')
-rw-r--r--find.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/find.c b/find.c
index d618401..c92202b 100644
--- a/find.c
+++ b/find.c
@@ -35,7 +35,7 @@ static const char find_usage[] = "find [path...] [expression]\n"
-static int fileAction(const char *fileName)
+static int fileAction(const char *fileName, struct stat* statbuf)
{
if (pattern==NULL)
fprintf(stdout, "%s\n", fileName);
@@ -44,7 +44,7 @@ static int fileAction(const char *fileName)
return( TRUE);
}
-static int dirAction(const char *fileName)
+static int dirAction(const char *fileName, struct stat* statbuf)
{
DIR *dir;
struct dirent *entry;
@@ -70,7 +70,7 @@ static int dirAction(const char *fileName)
int find_main(int argc, char **argv)
{
if (argc <= 1) {
- dirAction( ".");
+ dirAction( ".", NULL);
}
/* peel off the "find" */
@@ -120,7 +120,7 @@ int find_main(int argc, char **argv)
break;
}
- dirAction( directory);
+ dirAction( directory, NULL);
exit(TRUE);
}