summaryrefslogtreecommitdiffstats
path: root/cpukit/libblock/src/ramdisk.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/ramdisk.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/ramdisk.c')
-rw-r--r--cpukit/libblock/src/ramdisk.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpukit/libblock/src/ramdisk.c b/cpukit/libblock/src/ramdisk.c
index 1b544316df..6ec3b13386 100644
--- a/cpukit/libblock/src/ramdisk.c
+++ b/cpukit/libblock/src/ramdisk.c
@@ -46,7 +46,7 @@ struct ramdisk {
};
static struct ramdisk *ramdisk;
-static int nramdisks;
+static uint32_t nramdisks;
#if RTEMS_RAMDISK_TRACE
/**
@@ -103,7 +103,7 @@ ramdisk_read(struct ramdisk *rd, rtems_blkdev_request *req)
sg = req->bufs;
for (i = 0; (remains > 0) && (i < req->bufnum); i++, sg++)
{
- int count = sg->length;
+ uint32_t count = sg->length;
from = ((char *)rd->area + (sg->block * rd->block_size));
if (count > remains)
count = remains;
@@ -143,7 +143,7 @@ ramdisk_write(struct ramdisk *rd, rtems_blkdev_request *req)
sg = req->bufs;
for (i = 0; (remains > 0) && (i < req->bufnum); i++, sg++)
{
- int count = sg->length;
+ uint32_t count = sg->length;
to = ((char *)rd->area + (sg->block * rd->block_size));
if (count > remains)
count = remains;