summaryrefslogtreecommitdiffstats
path: root/disk-utils/mkfs.minix.c
diff options
context:
space:
mode:
authorSami Kerola2012-12-16 11:43:58 +0100
committerKarel Zak2012-12-19 11:38:53 +0100
commita180dc6c54f90896d6491f9bdf704523236dd99c (patch)
tree6029f1fa51b8803b17b14966ac4c68fd604841d2 /disk-utils/mkfs.minix.c
parentminix: change types in header file (diff)
downloadkernel-qcow2-util-linux-a180dc6c54f90896d6491f9bdf704523236dd99c.tar.gz
kernel-qcow2-util-linux-a180dc6c54f90896d6491f9bdf704523236dd99c.tar.xz
kernel-qcow2-util-linux-a180dc6c54f90896d6491f9bdf704523236dd99c.zip
minix: use off_t, size_t, etc appropriate types
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'disk-utils/mkfs.minix.c')
-rw-r--r--disk-utils/mkfs.minix.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/disk-utils/mkfs.minix.c b/disk-utils/mkfs.minix.c
index 343ec688f..b445c0c6c 100644
--- a/disk-utils/mkfs.minix.c
+++ b/disk-utils/mkfs.minix.c
@@ -188,7 +188,7 @@ static void super_set_state(void)
static void write_tables(void) {
unsigned long imaps = get_nimaps();
unsigned long zmaps = get_nzmaps();
- unsigned long buffsz = get_inode_buffer_size();
+ size_t buffsz = get_inode_buffer_size();
/* Mark the super block valid. */
super_set_state();
@@ -552,8 +552,8 @@ static void setup_tables(void) {
* Perform a test of a block; return the number of
* blocks readable/writeable.
*/
-static long do_check(char * buffer, int try, unsigned int current_block) {
- long got;
+static size_t do_check(char * buffer, int try, unsigned int current_block) {
+ ssize_t got;
/* Seek to the correct loc. */
if (lseek(DEV, current_block * MINIX_BLOCK_SIZE, SEEK_SET) !=
@@ -587,7 +587,7 @@ static void alarm_intr(int alnum __attribute__ ((__unused__))) {
}
static void check_blocks(void) {
- int try,got;
+ size_t try, got;
static char buffer[MINIX_BLOCK_SIZE * TEST_BUFFER_BLOCKS];
unsigned long zones = get_nzones();
unsigned long first_zone = get_first_zone();