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/libblock/include/rtems/diskdevs.h | 2 +- cpukit/libblock/src/diskdevs.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'cpukit/libblock') diff --git a/cpukit/libblock/include/rtems/diskdevs.h b/cpukit/libblock/include/rtems/diskdevs.h index eff763f9e0..6542d74775 100644 --- a/cpukit/libblock/include/rtems/diskdevs.h +++ b/cpukit/libblock/include/rtems/diskdevs.h @@ -85,7 +85,7 @@ typedef struct disk_device { rtems_status_code rtems_disk_create_phys(dev_t dev, int block_size, int disk_size, block_device_ioctl handler, - char *name); + const char *name); /* rtems_disk_create_log -- * Create logical disk entry. Logical disk is contiguous area on physical diff --git a/cpukit/libblock/src/diskdevs.c b/cpukit/libblock/src/diskdevs.c index 25b8287610..545a4096e7 100644 --- a/cpukit/libblock/src/diskdevs.c +++ b/cpukit/libblock/src/diskdevs.c @@ -171,7 +171,7 @@ get_disk_entry(dev_t dev) * no memory available). */ static rtems_status_code -create_disk(dev_t dev, char *name, disk_device **diskdev) +create_disk(dev_t dev, const char *name, disk_device **diskdev) { disk_device *dd; char *n; @@ -235,7 +235,7 @@ create_disk(dev_t dev, char *name, disk_device **diskdev) rtems_status_code rtems_disk_create_phys(dev_t dev, int block_size, int disk_size, block_device_ioctl handler, - char *name) + const char *name) { int bs_log2; int i; -- cgit v1.2.3