[rtems commit] Filesystem: Change node type enum values
Sebastian Huber
sebh at rtems.org
Tue Mar 13 11:31:31 UTC 2012
Module: rtems
Branch: master
Commit: bea7043c80a9534c7ad3c0dd3382990915a07a07
Changeset: http://git.rtems.org/rtems/commit/?id=bea7043c80a9534c7ad3c0dd3382990915a07a07
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Fri Feb 24 13:42:06 2012 +0100
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.
---
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 f883d66..d3efd4a 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;
/**
More information about the vc
mailing list