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 +- cpukit/sapi/src/ioregisterdriver.c | 2 +- cpukit/sapi/src/itronapi.c | 4 ++-- cpukit/sapi/src/posixapi.c | 4 ++-- 5 files changed, 9 insertions(+), 9 deletions(-) (limited to 'cpukit/sapi') 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 ); diff --git a/cpukit/sapi/src/ioregisterdriver.c b/cpukit/sapi/src/ioregisterdriver.c index 4c57e3fbf7..7322d77d62 100644 --- a/cpukit/sapi/src/ioregisterdriver.c +++ b/cpukit/sapi/src/ioregisterdriver.c @@ -36,7 +36,7 @@ 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 ) { diff --git a/cpukit/sapi/src/itronapi.c b/cpukit/sapi/src/itronapi.c index e52a64e370..0d44db6801 100644 --- a/cpukit/sapi/src/itronapi.c +++ b/cpukit/sapi/src/itronapi.c @@ -51,7 +51,7 @@ * XXX */ -itron_api_configuration_table _ITRON_Default_configuration = { +const itron_api_configuration_table _ITRON_Default_configuration = { 0, /* maximum_tasks */ 0, /* maximum_semaphores */ 0, /* maximum_eventflags */ @@ -70,7 +70,7 @@ void _ITRON_API_Initialize( rtems_configuration_table *configuration_table ) { - itron_api_configuration_table *api_configuration; + const itron_api_configuration_table *api_configuration; /* XXX need to assert here based on size assumptions */ diff --git a/cpukit/sapi/src/posixapi.c b/cpukit/sapi/src/posixapi.c index b224c6ad52..9ff55ab63e 100644 --- a/cpukit/sapi/src/posixapi.c +++ b/cpukit/sapi/src/posixapi.c @@ -55,7 +55,7 @@ * XXX */ -posix_api_configuration_table _POSIX_Default_configuration = { +const posix_api_configuration_table _POSIX_Default_configuration = { 0, /* maximum_threads */ 0, /* maximum_mutexes */ 0, /* maximum_condition_variables */ @@ -78,7 +78,7 @@ void _POSIX_API_Initialize( rtems_configuration_table *configuration_table ) { - posix_api_configuration_table *api_configuration; + const posix_api_configuration_table *api_configuration; /* XXX need to assert here based on size assumptions */ -- cgit v1.2.3