Switched to using strcasecmp() since it is more portable.

D. V. Henkel-Wallace <gumby@zembu.com> spotted this one.
This commit is contained in:
Joel Sherrill
1999-06-09 13:50:47 +00:00
parent eb91a4bb49
commit 8dba3733fb
3 changed files with 6 additions and 6 deletions

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;