From bf95ccb5068543b453c1dfbf5e8ae7b6c814e1e4 Mon Sep 17 00:00:00 2001 From: Thomas Doerfler Date: Tue, 27 May 2008 10:34:15 +0000 Subject: Added const qualifier to various pointers and data tables to reduce size of data area. IMFS: Fixed creation of symbolic links to avoid a compiler warning. DOSFS: Use LibBlock instead of read() to read the boot record. --- cpukit/sapi/include/confdefs.h | 6 +++--- cpukit/sapi/include/rtems/io.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'cpukit/sapi/include') diff --git a/cpukit/sapi/include/confdefs.h b/cpukit/sapi/include/confdefs.h index 8d8f3b889b..de4bc5dc4f 100644 --- a/cpukit/sapi/include/confdefs.h +++ b/cpukit/sapi/include/confdefs.h @@ -133,7 +133,7 @@ extern int rtems_telnetd_maximum_ptys; #ifdef CONFIGURE_INIT #ifndef CONFIGURE_HAS_OWN_MOUNT_TABLE - rtems_filesystem_mount_table_t configuration_mount_table = { + const rtems_filesystem_mount_table_t configuration_mount_table = { #ifdef CONFIGURE_USE_IMFS_AS_BASE_FILESYSTEM &IMFS_ops, #else /* using miniIMFS as base filesystem */ @@ -144,9 +144,9 @@ extern int rtems_telnetd_maximum_ptys; NULL }; - rtems_filesystem_mount_table_t + const rtems_filesystem_mount_table_t *rtems_filesystem_mount_table = &configuration_mount_table; - int rtems_filesystem_mount_table_size = 1; + const int rtems_filesystem_mount_table_size = 1; #endif #endif diff --git a/cpukit/sapi/include/rtems/io.h b/cpukit/sapi/include/rtems/io.h index fdabc028b6..e96a2f6333 100644 --- a/cpukit/sapi/include/rtems/io.h +++ b/cpukit/sapi/include/rtems/io.h @@ -120,7 +120,7 @@ void _IO_Manager_initialization( rtems_status_code rtems_io_register_driver( rtems_device_major_number major, - rtems_driver_address_table *driver_table, + const rtems_driver_address_table *driver_table, rtems_device_major_number *registered_major ); -- cgit v1.2.3