Changeset 8dba373 in rtems


Ignore:
Timestamp:
Jun 9, 1999, 1:50:47 PM (22 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
0860426
Parents:
eb91a4b
Message:

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

  1. V. Henkel-Wallace <gumby@…> spotted this one.
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/libcsupport/src/mount.c

    reb91a4b r8dba373  
    271271)
    272272{
    273   if ( strcmp( "RO", strupr( fsoptions ) ) == 0 )
     273  if ( strcasecmp( "RO", fsoptions ) == 0 )
    274274    return RTEMS_FILESYSTEM_READ_ONLY;
    275   if ( strcmp( "RW", strupr( fsoptions ) ) == 0 )
     275  if ( strcasecmp( "RW", fsoptions ) == 0 )
    276276    return RTEMS_FILESYSTEM_READ_WRITE_ONLY;
    277277  else
  • c/src/lib/libc/mount.c

    reb91a4b r8dba373  
    271271)
    272272{
    273   if ( strcmp( "RO", strupr( fsoptions ) ) == 0 )
     273  if ( strcasecmp( "RO", fsoptions ) == 0 )
    274274    return RTEMS_FILESYSTEM_READ_ONLY;
    275   if ( strcmp( "RW", strupr( fsoptions ) ) == 0 )
     275  if ( strcasecmp( "RW", fsoptions ) == 0 )
    276276    return RTEMS_FILESYSTEM_READ_WRITE_ONLY;
    277277  else
  • cpukit/libcsupport/src/mount.c

    reb91a4b r8dba373  
    271271)
    272272{
    273   if ( strcmp( "RO", strupr( fsoptions ) ) == 0 )
     273  if ( strcasecmp( "RO", fsoptions ) == 0 )
    274274    return RTEMS_FILESYSTEM_READ_ONLY;
    275   if ( strcmp( "RW", strupr( fsoptions ) ) == 0 )
     275  if ( strcasecmp( "RW", fsoptions ) == 0 )
    276276    return RTEMS_FILESYSTEM_READ_WRITE_ONLY;
    277277  else
Note: See TracChangeset for help on using the changeset viewer.