Fix recurse() prototype and convert char to int flags

This commit is contained in:
sin
2015-02-16 16:23:12 +00:00
parent d8fa891008
commit 8f068589fb
11 changed files with 15 additions and 15 deletions

View File

@@ -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)

View File

@@ -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;

View File

@@ -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');