+ wrap things in B<> to make pod2man happy
[oweals/busybox.git] / rm.c
diff --git a/rm.c b/rm.c
index 41afedaf9010be196c5f47b5bb7ce3238a2a3100..0cd795661a0bc31df6aa65544f846d59160f0585 100644 (file)
--- a/rm.c
+++ b/rm.c
@@ -3,7 +3,7 @@
  * Mini rm implementation for busybox
  *
  *
- * Copyright (C) 1999 by Lineo, inc.
+ * Copyright (C) 1999,2000 by Lineo, inc.
  * Written by Erik Andersen <andersen@lineo.com>, <andersee@debian.org>
  *
  * This program is free software; you can redistribute it and/or modify
@@ -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);
                        }
                }