Fix recurse() prototype and convert char to int flags
This commit is contained in:
@@ -21,7 +21,7 @@ int cp_pflag = 0;
|
||||
int cp_rflag = 0;
|
||||
int cp_vflag = 0;
|
||||
int cp_status = 0;
|
||||
char cp_HLPflag = 'L';
|
||||
int cp_HLPflag = 'L';
|
||||
|
||||
int
|
||||
cp(const char *s1, const char *s2, char ff)
|
||||
|
@@ -11,7 +11,7 @@
|
||||
#include "../util.h"
|
||||
|
||||
void
|
||||
recurse(const char *path, void (*fn)(const char *, char), int follow)
|
||||
recurse(const char *path, void (*fn)(const char *, int), int follow)
|
||||
{
|
||||
char buf[PATH_MAX];
|
||||
struct dirent *d;
|
||||
|
@@ -9,7 +9,7 @@ int rm_rflag = 0;
|
||||
int rm_status = 0;
|
||||
|
||||
void
|
||||
rm(const char *path)
|
||||
rm(const char *path, int unused)
|
||||
{
|
||||
if (rm_rflag)
|
||||
recurse(path, rm, 'P');
|
||||
|
Reference in New Issue
Block a user