diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-08-21 16:17:35 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-08-21 16:17:35 +0000 |
commit | cec5c069b08ce39fe17af5d0a0df278469f46c57 (patch) | |
tree | 2bf7a9b09cf83f4b11513c13298e66f7b2d0aede /cpukit/libblock/src/diskdevs.c | |
parent | 2008-08-21 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-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/diskdevs.c')
-rw-r--r-- | cpukit/libblock/src/diskdevs.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/cpukit/libblock/src/diskdevs.c b/cpukit/libblock/src/diskdevs.c index 35332c4b87..b04e08818c 100644 --- a/cpukit/libblock/src/diskdevs.c +++ b/cpukit/libblock/src/diskdevs.c @@ -25,14 +25,14 @@ /* Table of disk devices having the same major number */ typedef struct rtems_disk_device_table { rtems_disk_device **minor; /* minor-indexed disk device table */ - int size; /* Number of entries in the table */ + uint32_t size; /* Number of entries in the table */ } rtems_disk_device_table; /* Pointer to [major].minor[minor] indexed array of disk devices */ static rtems_disk_device_table *disktab; /* Number of allocated entries in disktab table */ -static int disktab_size; +static uint32_t disktab_size; /* Mutual exclusion semaphore for disk devices table */ static rtems_id diskdevs_mutex; @@ -76,8 +76,8 @@ create_disk_entry(dev_t dev) if (major >= disktab_size) { rtems_disk_device_table *p; - int newsize; - int i; + uint32_t newsize; + uint32_t i; newsize = disktab_size * 2; if (major >= newsize) newsize = major + 1; @@ -97,10 +97,10 @@ create_disk_entry(dev_t dev) if ((disktab[major].minor == NULL) || (minor >= disktab[major].size)) { - int newsize; + uint32_t newsize; rtems_disk_device **p; - int i; - int s = disktab[major].size; + uint32_t i; + uint32_t s = disktab[major].size; if (s == 0) newsize = DISKTAB_INITIAL_SIZE; |