diff options
author | H. Peter Anvin <hpa@zytor.com> | 2010-03-04 22:54:07 -0800 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2010-03-04 22:54:07 -0800 |
commit | b4da45a8a0a7c7e6f66850dee1f1733100767c30 (patch) | |
tree | 9c7113f863d116123b33627e4351e642410ebb22 /com32/rosh/rosh.c | |
parent | 62f4043881ed61fae8ea899c59797a1cc8e1c651 (diff) | |
download | syslinux-b4da45a8a0a7c7e6f66850dee1f1733100767c30.tar.gz syslinux-b4da45a8a0a7c7e6f66850dee1f1733100767c30.tar.xz syslinux-b4da45a8a0a7c7e6f66850dee1f1733100767c30.zip |
readdir: replace opendir/readdir/closedir API with a 32-bit API
The 16-bit API to opendir/readdir/closedir was confused, had a memory
leak, and was incompatible with Syslinux 3.x anyway. Replace it with
a pure 32-bit API.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'com32/rosh/rosh.c')
-rw-r--r-- | com32/rosh/rosh.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/com32/rosh/rosh.c b/com32/rosh/rosh.c index 13e8ffbd..aa3e4532 100644 --- a/com32/rosh/rosh.c +++ b/com32/rosh/rosh.c @@ -451,7 +451,6 @@ void rosh_dir_arg(const char *ifilstr, const char *pwdstr) // inchar = fgetc(stdin); // fgets(instr, ROSH_CMD_SZ, stdin); #endif /* DO_DEBUG */ - free(de); de = readdir(d); // if(filepos>15){ de = NULL; printf("Force Break\n");} } |