aboutsummaryrefslogtreecommitdiffstats
path: root/com32/rosh/rosh.c
diff options
context:
space:
mode:
authorLiu Aleaxander <Aleaxander@gmail.com>2009-08-28 18:27:51 +0800
committerLiu Aleaxander <Aleaxander@gmail.com>2009-08-28 18:27:51 +0800
commitc29a8049d462815774bbce8f80a8471a985bafcd (patch)
tree38420b5b946d76a7c44629cbd54da0a5c646d0f7 /com32/rosh/rosh.c
parent6fcebf4ed2be8de96ff106c3755c7776f1c66804 (diff)
downloadsyslinux-c29a8049d462815774bbce8f80a8471a985bafcd.tar.gz
syslinux-c29a8049d462815774bbce8f80a8471a985bafcd.tar.xz
syslinux-c29a8049d462815774bbce8f80a8471a985bafcd.zip
Core: vfs-dir stuff re-implemented
We fist make it simple, as told by hpa. Here're the changes: 1, The DIR structure changed, just a file pointer included. 2. So, the open/close/read-dir stuff in com32/lib/ changed again. 3. We read one stuff from every readdir call. Signed-off-by: Liu Aleaxander <Aleaxander@gmail.com>
Diffstat (limited to 'com32/rosh/rosh.c')
-rw-r--r--com32/rosh/rosh.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/com32/rosh/rosh.c b/com32/rosh/rosh.c
index c634a940..862497be 100644
--- a/com32/rosh/rosh.c
+++ b/com32/rosh/rosh.c
@@ -428,8 +428,7 @@ void rosh_dir_arg(const char *ifilstr, const char *pwdstr)
filepos = 0;
d = opendir(filestr);
if (d != NULL) {
- printf("DIR:'%s' %08x %8d\n", d->dd_name, (int)d->dd_sect,
- d->dd_offset);
+ //printf("DIR:'%s' %08x %8d\n", d->dd_name, (int)d->dd_sect, d->dd_offset);
de = readdir(d);
while (de != NULL) {
filepos++;