summaryrefslogtreecommitdiffstats
path: root/cpukit/libblock/src/blkdev.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-08-21 16:17:35 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-08-21 16:17:35 +0000
commitcec5c069b08ce39fe17af5d0a0df278469f46c57 (patch)
tree2bf7a9b09cf83f4b11513c13298e66f7b2d0aede /cpukit/libblock/src/blkdev.c
parent2008-08-21 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-cec5c069b08ce39fe17af5d0a0df278469f46c57.tar.bz2
2008-08-21 Joel Sherrill <joel.sherrill@OARcorp.com>
* libblock/include/rtems/bdbuf.h, libblock/include/rtems/diskdevs.h, libblock/src/bdbuf.c, libblock/src/blkdev.c, libblock/src/diskdevs.c, libblock/src/ramdisk.c: Eliminate sign mismatch warnings.
Diffstat (limited to 'cpukit/libblock/src/blkdev.c')
-rw-r--r--cpukit/libblock/src/blkdev.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/cpukit/libblock/src/blkdev.c b/cpukit/libblock/src/blkdev.c
index 0f1997565d..1fd063720f 100644
--- a/cpukit/libblock/src/blkdev.c
+++ b/cpukit/libblock/src/blkdev.c
@@ -58,8 +58,8 @@ rtems_blkdev_generic_read(
while (count > 0)
{
rtems_bdbuf_buffer *diskbuf;
- int copy;
- rtems_status_code rc;
+ uint32_t copy;
+ rtems_status_code rc;
rc = rtems_bdbuf_read(dev, block, &diskbuf);
if (rc != RTEMS_SUCCESSFUL)
@@ -91,12 +91,12 @@ rtems_blkdev_generic_write(
void * arg)
{
rtems_libio_rw_args_t *args = arg;
- int block_size_log2;
- int block_size;
+ int block_size_log2;
+ uint32_t block_size;
char *buf;
- unsigned int count;
- unsigned int block;
- unsigned int blkofs;
+ uint32_t count;
+ uint32_t block;
+ uint32_t blkofs;
dev_t dev;
rtems_status_code rc;
rtems_disk_device *dd;
@@ -119,7 +119,7 @@ rtems_blkdev_generic_write(
while (count > 0)
{
rtems_bdbuf_buffer *diskbuf;
- int copy;
+ uint32_t copy;
if ((blkofs == 0) && (count >= block_size))
rc = rtems_bdbuf_get(dev, block, &diskbuf);