diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-02-24 13:42:06 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-03-13 12:23:45 +0100 |
commit | bea7043c80a9534c7ad3c0dd3382990915a07a07 (patch) | |
tree | 8881a4110d6a0e1c63aa356a60c7144a81c3a91b | |
parent | Filesystem: Change error indication (diff) | |
download | rtems-bea7043c80a9534c7ad3c0dd3382990915a07a07.tar.bz2 |
Filesystem: Change node type enum values
Move the RTEMS_FILESYSTEM_INVALID_NODE_TYPE to the end. This makes it
possible to use this enum easily as an array index. Most comparisons
are made against RTEMS_FILESYSTEM_DIRECTORY. A value of zero allows on
some architectures simpler branch operations.
-rw-r--r-- | cpukit/libcsupport/include/rtems/libio.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/libcsupport/include/rtems/libio.h b/cpukit/libcsupport/include/rtems/libio.h index f883d66b40..d3efd4a204 100644 --- a/cpukit/libcsupport/include/rtems/libio.h +++ b/cpukit/libcsupport/include/rtems/libio.h @@ -53,12 +53,12 @@ extern "C" { * @brief File system node types. */ typedef enum { - RTEMS_FILESYSTEM_INVALID_NODE_TYPE, RTEMS_FILESYSTEM_DIRECTORY, RTEMS_FILESYSTEM_DEVICE, RTEMS_FILESYSTEM_HARD_LINK, RTEMS_FILESYSTEM_SYM_LINK, - RTEMS_FILESYSTEM_MEMORY_FILE + RTEMS_FILESYSTEM_MEMORY_FILE, + RTEMS_FILESYSTEM_INVALID_NODE_TYPE } rtems_filesystem_node_types_t; /** |