projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
*: remove some uses of argc
[oweals/busybox.git]
/
e2fsprogs
/
old_e2fsprogs
/
lsattr.c
diff --git
a/e2fsprogs/old_e2fsprogs/lsattr.c
b/e2fsprogs/old_e2fsprogs/lsattr.c
index 9201464968c196b6d9e3392de9d0ea6b5b1a18af..294bf2f2e8727503bff7893cfb68b11fbfb69503 100644
(file)
--- a/
e2fsprogs/old_e2fsprogs/lsattr.c
+++ b/
e2fsprogs/old_e2fsprogs/lsattr.c
@@
-56,10
+56,10
@@
static void list_attributes(const char *name)
if (flags & OPT_PF_LONG) {
printf("%-28s ", name);
if (flags & OPT_PF_LONG) {
printf("%-28s ", name);
- print_flags(stdout, fsflags, PFOPT_LONG);
-
puts(""
);
+ print_
e2
flags(stdout, fsflags, PFOPT_LONG);
+
bb_putchar('\n'
);
} else {
} else {
- print_flags(stdout, fsflags, 0);
+ print_
e2
flags(stdout, fsflags, 0);
printf(" %s\n", name);
}
printf(" %s\n", name);
}
@@
-102,7
+102,7
@@
static int lsattr_dir_proc(const char *dir_name, struct dirent *de,
(de->d_name[1] != '.' && de->d_name[2] != '\0')))) {
printf("\n%s:\n", path);
iterate_on_dir(path, lsattr_dir_proc, NULL);
(de->d_name[1] != '.' && de->d_name[2] != '\0')))) {
printf("\n%s:\n", path);
iterate_on_dir(path, lsattr_dir_proc, NULL);
-
puts(""
);
+
bb_putchar('\n'
);
}
}
}
}
}
}
@@
-112,7
+112,7
@@
static int lsattr_dir_proc(const char *dir_name, struct dirent *de,
return 0;
}
return 0;
}
-int lsattr_main(int argc, char **argv);
+int lsattr_main(int argc, char **argv)
MAIN_EXTERNALLY_VISIBLE
;
int lsattr_main(int argc, char **argv)
{
int i;
int lsattr_main(int argc, char **argv)
{
int i;