From a1f10111da5d72c3e9e7f3cd69561f945fd25277 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 28 Oct 2002 14:04:03 +0000 Subject: 2002-10-28 Joel Sherrill * include/rtems/libio.h: Change rtems_filesystem_node_types_t from enumeration to int to eliminate warnings when values are overridden. --- cpukit/libcsupport/ChangeLog | 5 +++++ cpukit/libcsupport/include/rtems/libio.h | 14 +++++++------- 2 files changed, 12 insertions(+), 7 deletions(-) (limited to 'cpukit') 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 + + * 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 * 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 -- cgit v1.2.3