* commit 'af9e9d97ee7a53fd5f315ac16b63cc41a3207c33': Minor cleanups.
This commit is contained in:
commit
bfb1d8a275
1 changed files with 3 additions and 3 deletions
|
|
@ -209,7 +209,7 @@ static int listfile_long(const char *path, struct stat *s, int flags)
|
||||||
break;
|
break;
|
||||||
case S_IFLNK: {
|
case S_IFLNK: {
|
||||||
char linkto[256];
|
char linkto[256];
|
||||||
int len;
|
ssize_t len;
|
||||||
|
|
||||||
len = readlink(path, linkto, 256);
|
len = readlink(path, linkto, 256);
|
||||||
if(len < 0) return -1;
|
if(len < 0) return -1;
|
||||||
|
|
@ -235,7 +235,7 @@ static int listfile_long(const char *path, struct stat *s, int flags)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int listfile_maclabel(const char *path, struct stat *s, int flags)
|
static int listfile_maclabel(const char *path, struct stat *s)
|
||||||
{
|
{
|
||||||
char mode[16];
|
char mode[16];
|
||||||
char user[32];
|
char user[32];
|
||||||
|
|
@ -324,7 +324,7 @@ static int listfile(const char *dirname, const char *filename, int flags)
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((flags & LIST_MACLABEL) != 0) {
|
if ((flags & LIST_MACLABEL) != 0) {
|
||||||
return listfile_maclabel(pathname, &s, flags);
|
return listfile_maclabel(pathname, &s);
|
||||||
} else if ((flags & LIST_LONG) != 0) {
|
} else if ((flags & LIST_LONG) != 0) {
|
||||||
return listfile_long(pathname, &s, flags);
|
return listfile_long(pathname, &s, flags);
|
||||||
} else /*((flags & LIST_SIZE) != 0)*/ {
|
} else /*((flags & LIST_SIZE) != 0)*/ {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue