From bea7043c80a9534c7ad3c0dd3382990915a07a07 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 24 Feb 2012 13:42:06 +0100 Subject: 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 file 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; /** -- cgit v1.2.3