[PATCH 1/4] Filesystem: Make rtems_libio_number_iops const
Sebastian Huber
sebastian.huber at embedded-brains.de
Mon Feb 2 14:25:23 UTC 2015
---
cpukit/libcsupport/include/rtems/libio_.h | 2 +-
cpukit/sapi/include/confdefs.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/cpukit/libcsupport/include/rtems/libio_.h b/cpukit/libcsupport/include/rtems/libio_.h
index e204508..8703e09 100644
--- a/cpukit/libcsupport/include/rtems/libio_.h
+++ b/cpukit/libcsupport/include/rtems/libio_.h
@@ -64,7 +64,7 @@ extern rtems_id rtems_libio_semaphore;
* File descriptor Table Information
*/
-extern uint32_t rtems_libio_number_iops;
+extern const uint32_t rtems_libio_number_iops;
extern rtems_libio_t *rtems_libio_iops;
extern rtems_libio_t *rtems_libio_last_iop;
extern rtems_libio_t *rtems_libio_iop_freelist;
diff --git a/cpukit/sapi/include/confdefs.h b/cpukit/sapi/include/confdefs.h
index 595dac5..569f136 100644
--- a/cpukit/sapi/include/confdefs.h
+++ b/cpukit/sapi/include/confdefs.h
@@ -157,7 +157,7 @@ const rtems_libio_helper rtems_fs_init_helper =
* When instantiating the configuration tables, this variable is
* initialized to specify the maximum number of file descriptors.
*/
- uint32_t rtems_libio_number_iops = CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS;
+ const uint32_t rtems_libio_number_iops = CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS;
#endif
/**
--
1.8.4.5
More information about the devel
mailing list