style fixes. No code changes
This commit is contained in:
@@ -301,14 +301,16 @@ int sysctl_display_all(const char *path, int output, int show_table)
|
||||
char *tmpdir;
|
||||
struct stat ts;
|
||||
|
||||
if (!(dp = opendir(path))) {
|
||||
dp = opendir(path);
|
||||
if (!dp) {
|
||||
retval = -1;
|
||||
} else {
|
||||
while ((de = readdir(dp)) != NULL) {
|
||||
tmpdir = concat_subpath_file(path, de->d_name);
|
||||
if(tmpdir == NULL)
|
||||
if (tmpdir == NULL)
|
||||
continue;
|
||||
if ((retval2 = stat(tmpdir, &ts)) != 0)
|
||||
retval2 = stat(tmpdir, &ts);
|
||||
if (retval2 != 0)
|
||||
bb_perror_msg(tmpdir);
|
||||
else {
|
||||
if (S_ISDIR(ts.st_mode)) {
|
||||
|
||||
Reference in New Issue
Block a user