[rtems commit] Filesystem: Make rtems_libio_number_iops const

Sebastian Huber sebh at rtems.org
Wed Feb 4 13:34:20 UTC 2015


Module:    rtems
Branch:    master
Commit:    ead010cd3caeac0b3300d0031c1f31a36f798792
Changeset: http://git.rtems.org/rtems/commit/?id=ead010cd3caeac0b3300d0031c1f31a36f798792

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Mon Feb  2 15:25:23 2015 +0100

Filesystem: Make rtems_libio_number_iops const

---

 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
 
 /**



More information about the vc mailing list