summaryrefslogtreecommitdiff
path: root/coreutils/rm.c
diff options
context:
space:
mode:
authorErik Andersen2000-03-28 00:58:14 +0000
committerErik Andersen2000-03-28 00:58:14 +0000
commit3364d78b18386623e7af5da18ba1bb0cc6286279 (patch)
tree36b57afb6f3eefcdc8fdaf40e51fa6956264db50 /coreutils/rm.c
parent6acaa40f27de0da935c3063b6be2ead9eeee5d0b (diff)
downloadbusybox-3364d78b18386623e7af5da18ba1bb0cc6286279.zip
busybox-3364d78b18386623e7af5da18ba1bb0cc6286279.tar.gz
Yet another installment in the ongoing tar saga
-Erik
Diffstat (limited to 'coreutils/rm.c')
-rw-r--r--coreutils/rm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/coreutils/rm.c b/coreutils/rm.c
index 41afeda..683bf8b 100644
--- a/coreutils/rm.c
+++ b/coreutils/rm.c
@@ -42,7 +42,7 @@ static int forceFlag = FALSE;
static const char *srcName;
-static int fileAction(const char *fileName, struct stat *statbuf)
+static int fileAction(const char *fileName, struct stat *statbuf, void* junk)
{
if (unlink(fileName) < 0) {
perror(fileName);
@@ -51,7 +51,7 @@ static int fileAction(const char *fileName, struct stat *statbuf)
return (TRUE);
}
-static int dirAction(const char *fileName, struct stat *statbuf)
+static int dirAction(const char *fileName, struct stat *statbuf, void* junk)
{
if (rmdir(fileName) < 0) {
perror(fileName);
@@ -95,7 +95,7 @@ extern int rm_main(int argc, char **argv)
/* do not reports errors for non-existent files if -f, just skip them */
} else {
if (recursiveAction(srcName, recursiveFlag, FALSE,
- TRUE, fileAction, dirAction) == FALSE) {
+ TRUE, fileAction, dirAction, NULL) == FALSE) {
exit(FALSE);
}
}