diff options
Diffstat (limited to 'rm.c')
-rw-r--r-- | rm.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -42,7 +42,7 @@ static int forceFlag = FALSE; | |||
42 | static const char *srcName; | 42 | static const char *srcName; |
43 | 43 | ||
44 | 44 | ||
45 | static int fileAction(const char *fileName, struct stat *statbuf) | 45 | static int fileAction(const char *fileName, struct stat *statbuf, void* junk) |
46 | { | 46 | { |
47 | if (unlink(fileName) < 0) { | 47 | if (unlink(fileName) < 0) { |
48 | perror(fileName); | 48 | perror(fileName); |
@@ -51,7 +51,7 @@ static int fileAction(const char *fileName, struct stat *statbuf) | |||
51 | return (TRUE); | 51 | return (TRUE); |
52 | } | 52 | } |
53 | 53 | ||
54 | static int dirAction(const char *fileName, struct stat *statbuf) | 54 | static int dirAction(const char *fileName, struct stat *statbuf, void* junk) |
55 | { | 55 | { |
56 | if (rmdir(fileName) < 0) { | 56 | if (rmdir(fileName) < 0) { |
57 | perror(fileName); | 57 | perror(fileName); |
@@ -95,7 +95,7 @@ extern int rm_main(int argc, char **argv) | |||
95 | /* do not reports errors for non-existent files if -f, just skip them */ | 95 | /* do not reports errors for non-existent files if -f, just skip them */ |
96 | } else { | 96 | } else { |
97 | if (recursiveAction(srcName, recursiveFlag, FALSE, | 97 | if (recursiveAction(srcName, recursiveFlag, FALSE, |
98 | TRUE, fileAction, dirAction) == FALSE) { | 98 | TRUE, fileAction, dirAction, NULL) == FALSE) { |
99 | exit(FALSE); | 99 | exit(FALSE); |
100 | } | 100 | } |
101 | } | 101 | } |