summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2002-10-28 14:04:03 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2002-10-28 14:04:03 +0000
commita1f10111da5d72c3e9e7f3cd69561f945fd25277 (patch)
treec33271e8bcd08d4fef6b0e9937d350563b2adfca /cpukit
parent2002-10-28 Eugeny S. Mints <Eugeny.Mints@oktet.ru> (diff)
downloadrtems-a1f10111da5d72c3e9e7f3cd69561f945fd25277.tar.bz2
2002-10-28 Joel Sherrill <joel@OARcorp.com>
* include/rtems/libio.h: Change rtems_filesystem_node_types_t from enumeration to int to eliminate warnings when values are overridden.
Diffstat (limited to 'cpukit')
-rw-r--r--cpukit/libcsupport/ChangeLog5
-rw-r--r--cpukit/libcsupport/include/rtems/libio.h14
2 files changed, 12 insertions, 7 deletions
diff --git a/cpukit/libcsupport/ChangeLog b/cpukit/libcsupport/ChangeLog
index 8a176c28bd..1639a13c2f 100644
--- a/cpukit/libcsupport/ChangeLog
+++ b/cpukit/libcsupport/ChangeLog
@@ -1,3 +1,8 @@
+2002-10-28 Joel Sherrill <joel@OARcorp.com>
+
+ * include/rtems/libio.h: Change rtems_filesystem_node_types_t from
+ enumeration to int to eliminate warnings when values are overridden.
+
2002-10-25 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.ac: Add nostdinc to AM_INIT_AUTOMAKE.
diff --git a/cpukit/libcsupport/include/rtems/libio.h b/cpukit/libcsupport/include/rtems/libio.h
index a3a21f23d8..595eeb460e 100644
--- a/cpukit/libcsupport/include/rtems/libio.h
+++ b/cpukit/libcsupport/include/rtems/libio.h
@@ -33,13 +33,13 @@
/*
* Valid RTEMS file types.
*/
-typedef enum {
- RTEMS_FILESYSTEM_DIRECTORY,
- RTEMS_FILESYSTEM_DEVICE,
- RTEMS_FILESYSTEM_HARD_LINK,
- RTEMS_FILESYSTEM_SYM_LINK,
- RTEMS_FILESYSTEM_MEMORY_FILE
-} rtems_filesystem_node_types_t;
+
+#define RTEMS_FILESYSTEM_DIRECTORY 1
+#define RTEMS_FILESYSTEM_DEVICE 2
+#define RTEMS_FILESYSTEM_HARD_LINK 3
+#define RTEMS_FILESYSTEM_SYM_LINK 4
+#define RTEMS_FILESYSTEM_MEMORY_FILE 5
+typedef int rtems_filesystem_node_types_t;
/*
* File Handler Operations Table