[rtems commit] Filesystem: Change node type enum values
Joel Sherrill
joel at rtems.org
Thu Mar 29 14:14:29 UTC 2012
Module: rtems
Branch: master
Commit: b1210cf0d005c218ae4503029bc6eba700e3f605
Changeset: http://git.rtems.org/rtems/commit/?id=b1210cf0d005c218ae4503029bc6eba700e3f605
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