diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2003-10-21 06:20:24 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2003-10-21 06:20:24 +0000 |
commit | 0cee850793a6569ca980b512c8ddbfcfd67dd4a9 (patch) | |
tree | 69daa0d8fcb679885ad757a6c10b49f7defcc77b | |
parent | 2003-10-13 Joel Sherrill <joel@OARcorp.com> (diff) | |
download | rtems-0cee850793a6569ca980b512c8ddbfcfd67dd4a9.tar.bz2 |
2003-10-21 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* src/dosfs/msdos_file.c (msdos_file_read, msdos_file_write):
Use '0' as initial value for ret instead of RC_OK.
2003-10-21 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* src/dosfs/msdos_conv.c: Remove isupper, islower, toupper, tolower
(Unused).
-rw-r--r-- | cpukit/libfs/ChangeLog | 10 | ||||
-rw-r--r-- | cpukit/libfs/src/dosfs/msdos_conv.c | 9 | ||||
-rw-r--r-- | cpukit/libfs/src/dosfs/msdos_file.c | 4 |
3 files changed, 12 insertions, 11 deletions
diff --git a/cpukit/libfs/ChangeLog b/cpukit/libfs/ChangeLog index 6520c40b52..eafd6ba3d2 100644 --- a/cpukit/libfs/ChangeLog +++ b/cpukit/libfs/ChangeLog @@ -1,3 +1,13 @@ +2003-10-21 Ralf Corsepius <corsepiu@faw.uni-ulm.de> + + * src/dosfs/msdos_file.c (msdos_file_read, msdos_file_write): + Use '0' as initial value for ret instead of RC_OK. + +2003-10-21 Ralf Corsepius <corsepiu@faw.uni-ulm.de> + + * src/dosfs/msdos_conv.c: Remove isupper, islower, toupper, tolower + (Unused). + 2003-09-26 Joel Sherrill <joel@OARcorp.com> PR 492/filesystem diff --git a/cpukit/libfs/src/dosfs/msdos_conv.c b/cpukit/libfs/src/dosfs/msdos_conv.c index c801de5761..b456304979 100644 --- a/cpukit/libfs/src/dosfs/msdos_conv.c +++ b/cpukit/libfs/src/dosfs/msdos_conv.c @@ -163,15 +163,6 @@ msdos_date_dos2unix(unsigned int dd, unsigned int dt) return seconds + lastseconds; } -/* - * Cheezy macros to do case detection and conversion for the ascii - * character set. DOESN'T work for ebcdic. - */ -#define isupper(c) (c >= 'A' && c <= 'Z') -#define islower(c) (c >= 'a' && c <= 'z') -#define toupper(c) (c & ~' ') -#define tolower(c) (c | ' ') - static const u_char msdos_map[] = { /* 00 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 08 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, diff --git a/cpukit/libfs/src/dosfs/msdos_file.c b/cpukit/libfs/src/dosfs/msdos_file.c index 6a97708263..df00dc437c 100644 --- a/cpukit/libfs/src/dosfs/msdos_file.c +++ b/cpukit/libfs/src/dosfs/msdos_file.c @@ -146,7 +146,7 @@ msdos_file_close(rtems_libio_t *iop) ssize_t msdos_file_read(rtems_libio_t *iop, void *buffer, unsigned32 count) { - ssize_t ret = RC_OK; + ssize_t ret = 0; rtems_status_code sc = RTEMS_SUCCESSFUL; msdos_fs_info_t *fs_info = iop->pathinfo.mt_entry->fs_info; fat_file_fd_t *fat_fd = iop->file_info; @@ -179,7 +179,7 @@ msdos_file_read(rtems_libio_t *iop, void *buffer, unsigned32 count) ssize_t msdos_file_write(rtems_libio_t *iop,const void *buffer, unsigned32 count) { - ssize_t ret = RC_OK; + ssize_t ret = 0; rtems_status_code sc = RTEMS_SUCCESSFUL; msdos_fs_info_t *fs_info = iop->pathinfo.mt_entry->fs_info; fat_file_fd_t *fat_fd = iop->file_info; |