summaryrefslogtreecommitdiffstats
path: root/cpukit/libblock
diff options
context:
space:
mode:
authorThomas Doerfler <Thomas.Doerfler@embedded-brains.de>2008-05-27 10:34:15 +0000
committerThomas Doerfler <Thomas.Doerfler@embedded-brains.de>2008-05-27 10:34:15 +0000
commitbf95ccb5068543b453c1dfbf5e8ae7b6c814e1e4 (patch)
treee1ce92224d77dd59b5d6227c2c800c19d90ae605 /cpukit/libblock
parentBugfix: Moved definition of ppp_softc into source file. (diff)
downloadrtems-bf95ccb5068543b453c1dfbf5e8ae7b6c814e1e4.tar.bz2
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.
Diffstat (limited to 'cpukit/libblock')
-rw-r--r--cpukit/libblock/include/rtems/diskdevs.h2
-rw-r--r--cpukit/libblock/src/diskdevs.c4
2 files changed, 3 insertions, 3 deletions
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;