Changeset 01eff24 in rtems


Ignore:
Timestamp:
Feb 27, 2013, 9:22:28 AM (7 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
2434555
Parents:
d06d4ab
git-author:
Sebastian Huber <sebastian.huber@…> (02/27/13 09:22:28)
git-committer:
Sebastian Huber <sebastian.huber@…> (02/27/13 09:53:49)
Message:

IMFS: PR2093: Fix warning

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libfs/src/imfs/imfs_mknod.c

    rd06d4ab r01eff24  
    3333  if ( S_ISDIR( mode ) ) {
    3434    *type = IMFS_DIRECTORY;
    35   } else if ( S_ISREG( mode ) ) {
    36     *type = IMFS_MEMORY_FILE;
    3735  } else if ( S_ISBLK( mode ) || S_ISCHR( mode ) ) {
    3836    *type = IMFS_DEVICE;
     
    4543    *type = IMFS_FIFO;
    4644  } else {
    47     IMFS_assert( 0 );
     45    IMFS_assert( S_ISREG( mode ) );
     46    *type = IMFS_MEMORY_FILE;
    4847  }
    4948}
Note: See TracChangeset for help on using the changeset viewer.