From ce92867bea9b027af4119c694aa6b72a043b4fea Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 2 Feb 2005 00:06:18 +0000 Subject: 2005-02-01 Joel Sherrill * libblock/include/rtems/bdbuf.h, libblock/include/rtems/ide_part_table.h, libblock/src/blkdev.c, libcsupport/include/rtems/termiostypes.h, libcsupport/src/termios.c, posix/macros/rtems/posix/cond.inl, posix/macros/rtems/posix/mutex.inl : Remove warnings. --- cpukit/libblock/include/rtems/bdbuf.h | 15 ++++++++------- cpukit/libblock/include/rtems/ide_part_table.h | 2 +- cpukit/libblock/src/blkdev.c | 4 ++-- 3 files changed, 11 insertions(+), 10 deletions(-) (limited to 'cpukit/libblock') diff --git a/cpukit/libblock/include/rtems/bdbuf.h b/cpukit/libblock/include/rtems/bdbuf.h index 8b39ce4fa7..0a10636966 100644 --- a/cpukit/libblock/include/rtems/bdbuf.h +++ b/cpukit/libblock/include/rtems/bdbuf.h @@ -54,7 +54,7 @@ typedef struct bdbuf_buffer { dev_t dev; /* device number */ blkdev_bnum block; /* block number on the device */ - char *buffer; /* Pointer to the buffer memory area */ + unsigned char *buffer; /* Pointer to the buffer memory area */ rtems_status_code status; /* Last I/O operation completion status */ int error; /* If status != RTEMS_SUCCESSFUL, this field contains errno value which can be used by user later */ @@ -79,12 +79,13 @@ typedef struct bdbuf_buffer { * amount, memory location) for buffering layer */ typedef struct rtems_bdbuf_config { - int size; /* Size of block */ - int num; /* Number of blocks of appropriate size */ - char *mem_area; /* Pointer to the blocks location or NULL, in this - case memory for blocks will be allocated by - Buffering Layer with the help of RTEMS partition - manager */ + int size; /* Size of block */ + int num; /* Number of blocks of appropriate size */ + unsigned char *mem_area; + /* Pointer to the blocks location or NULL, in this + case memory for blocks will be allocated by + Buffering Layer with the help of RTEMS partition + manager */ } rtems_bdbuf_config; extern rtems_bdbuf_config rtems_bdbuf_configuration[]; diff --git a/cpukit/libblock/include/rtems/ide_part_table.h b/cpukit/libblock/include/rtems/ide_part_table.h index 01efc0cdfb..f0910a58e6 100644 --- a/cpukit/libblock/include/rtems/ide_part_table.h +++ b/cpukit/libblock/include/rtems/ide_part_table.h @@ -134,7 +134,7 @@ typedef struct disk_desc_s { dev_t dev; /* device number */ /* device name in /dev filesystem */ - uint8_t dev_name[RTEMS_IDE_PARTITION_DEV_NAME_LENGTH_MAX]; + char dev_name[RTEMS_IDE_PARTITION_DEV_NAME_LENGTH_MAX]; uint32_t sector_size; /* size of sector */ uint32_t sector_bits; /* the base-2 logarithm of sector_size */ diff --git a/cpukit/libblock/src/blkdev.c b/cpukit/libblock/src/blkdev.c index bc6ec4b7f2..537950eb25 100644 --- a/cpukit/libblock/src/blkdev.c +++ b/cpukit/libblock/src/blkdev.c @@ -33,7 +33,7 @@ rtems_blkdev_generic_read( rtems_libio_rw_args_t *args = arg; int block_size_log2; int block_size; - char *buf; + unsigned char *buf; unsigned int count; unsigned int block; unsigned int blkofs; @@ -93,7 +93,7 @@ rtems_blkdev_generic_write( rtems_libio_rw_args_t *args = arg; int block_size_log2; int block_size; - char *buf; + unsigned char *buf; unsigned int count; unsigned int block; unsigned int blkofs; -- cgit v1.2.3