projects
/
profile
/
ivi
/
syslinux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9dcd2c4
)
rosh: code cleanup
author
Gene Cumm
<gene.cumm@gmail.com>
Sun, 3 Oct 2010 14:02:11 +0000
(10:02 -0400)
committer
Gene Cumm
<gene.cumm@gmail.com>
Sat, 9 Oct 2010 11:33:08 +0000
(07:33 -0400)
com32/rosh/rosh.c
patch
|
blob
|
history
diff --git
a/com32/rosh/rosh.c
b/com32/rosh/rosh.c
index
4f3be21
..
9831872
100644
(file)
--- a/
com32/rosh/rosh.c
+++ b/
com32/rosh/rosh.c
@@
-504,7
+504,7
@@
void rosh_ls_arg_opt(int argc, char *argv[], int *optarr)
optarr[2] = -1;
while (rv != -1) {
rv = getopt(argc, argv, rosh_ls_opt_str);
- switch (rv){
+ switch (rv)
{
case 'l':
optarr[0] = 1;
break;
@@
-871,8
+871,7
@@
void rosh_ls(int argc, char *argv[])
ROSH_DEBUG(" argc=%d; optind=%d\n", argc, optind);
if (optind > argc)
rosh_ls_arg(".", optarr);
- for (i = optind; i < argc; i++){
-// while (strlen(filestr) > 0) {
+ for (i = optind; i < argc; i++) {
rosh_ls_arg(argv[i], optarr);
}
} /* rosh_ls */