diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1999-06-09 13:50:47 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1999-06-09 13:50:47 +0000 |
commit | 8dba3733fbf605cdae096273507cb2f1f3a3ef9d (patch) | |
tree | 7182bc0a53740df09243d8d68d6223c14a7810b4 /c/src/lib/libc/mount.c | |
parent | Significantly cleaned up to make a much better starting point for the (diff) | |
download | rtems-8dba3733fbf605cdae096273507cb2f1f3a3ef9d.tar.bz2 |
Switched to using strcasecmp() since it is more portable.
D. V. Henkel-Wallace <gumby@zembu.com> spotted this one.
Diffstat (limited to '')
-rw-r--r-- | c/src/lib/libc/mount.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/c/src/lib/libc/mount.c b/c/src/lib/libc/mount.c index 6a713e1125..e242e1a8ff 100644 --- a/c/src/lib/libc/mount.c +++ b/c/src/lib/libc/mount.c @@ -270,9 +270,9 @@ rtems_filesystem_options_t get_file_system_options( char *fsoptions ) { - if ( strcmp( "RO", strupr( fsoptions ) ) == 0 ) + if ( strcasecmp( "RO", fsoptions ) == 0 ) return RTEMS_FILESYSTEM_READ_ONLY; - if ( strcmp( "RW", strupr( fsoptions ) ) == 0 ) + if ( strcasecmp( "RW", fsoptions ) == 0 ) return RTEMS_FILESYSTEM_READ_WRITE_ONLY; else return RTEMS_FILESYSTEM_BAD_OPTIONS; |