aboutsummaryrefslogtreecommitdiffstats
path: root/com32/rosh
diff options
context:
space:
mode:
authorGene Cumm <gene.cumm@gmail.com>2010-10-03 10:02:11 -0400
committerGene Cumm <gene.cumm@gmail.com>2010-10-09 07:33:08 -0400
commit33f17653a07d7618e9aed30f6883597e62c90b26 (patch)
tree7c567a08bda47ff88bf2805781d08e6c3d0e24bf /com32/rosh
parent9dcd2c464d0c1b022fa00835a8912045eb72be19 (diff)
downloadsyslinux-33f17653a07d7618e9aed30f6883597e62c90b26.tar.gz
syslinux-33f17653a07d7618e9aed30f6883597e62c90b26.tar.xz
syslinux-33f17653a07d7618e9aed30f6883597e62c90b26.zip
rosh: code cleanup
Diffstat (limited to 'com32/rosh')
-rw-r--r--com32/rosh/rosh.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/com32/rosh/rosh.c b/com32/rosh/rosh.c
index 4f3be21e..98318722 100644
--- 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 */