diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2005-05-06 14:57:43 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2005-05-06 14:57:43 +0000 |
commit | b17ff4913cc7f3d87e41da83a26655b4f0b9001f (patch) | |
tree | 2cc4cb2902f58bbe6e087048eb8527000f9ae133 /cpukit/libfs/src/dosfs/msdos_dir.c | |
parent | 2005-05-06 Joel Sherrill <joel@OARcorp.com> (diff) | |
download | rtems-b17ff4913cc7f3d87e41da83a26655b4f0b9001f.tar.bz2 |
2005-05-06 Joel Sherrill <joel@OARcorp.com>
* libblock/src/blkdev.c, libfs/src/dosfs/fat_file.c,
libfs/src/dosfs/fat_file.h, libfs/src/dosfs/msdos.h,
libfs/src/dosfs/msdos_create.c, libfs/src/dosfs/msdos_dir.c,
libfs/src/dosfs/msdos_initsupp.c, libfs/src/dosfs/msdos_misc.c:
Removed warnings.
Diffstat (limited to 'cpukit/libfs/src/dosfs/msdos_dir.c')
-rw-r--r-- | cpukit/libfs/src/dosfs/msdos_dir.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/cpukit/libfs/src/dosfs/msdos_dir.c b/cpukit/libfs/src/dosfs/msdos_dir.c index 4afc404592..38699a73a7 100644 --- a/cpukit/libfs/src/dosfs/msdos_dir.c +++ b/cpukit/libfs/src/dosfs/msdos_dir.c @@ -260,7 +260,8 @@ msdos_dir_read(rtems_libio_t *iop, void *buffer, uint32_t count) return cmpltd; } - if ((*MSDOS_DIR_NAME(fs_info->cl_buf + i)) == + /* have to look at the DIR_NAME as "raw" 8-bit data */ + if ((*(uint8_t *)MSDOS_DIR_NAME(fs_info->cl_buf + i)) == MSDOS_THIS_DIR_ENTRY_EMPTY) continue; @@ -309,9 +310,9 @@ msdos_dir_read(rtems_libio_t *iop, void *buffer, uint32_t count) * convert dir entry from fixed 8+3 format (without dot) * to 0..8 + 1dot + 0..3 format */ - tmp_dirent.d_namlen = - msdos_format_dirent_with_dot(tmp_dirent.d_name, - fs_info->cl_buf + i); /* src text */ + tmp_dirent.d_namlen = msdos_format_dirent_with_dot( + tmp_dirent.d_name, + (char *) fs_info->cl_buf + i); /* src text */ memcpy(buffer + cmpltd, &tmp_dirent, sizeof(struct dirent)); iop->offset = iop->offset + sizeof(struct dirent); |