From 8e5cad159f46984437314305959633f5a6bd9698 Mon Sep 17 00:00:00 2001 From: David van Moolenbroek Date: Tue, 5 Apr 2011 19:42:08 +0000 Subject: [PATCH] mkfs.mfs: use bitchunk_t (reported by Maurizio Lombardi) --- commands/mkfs.mfs/mkfs.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/commands/mkfs.mfs/mkfs.c b/commands/mkfs.mfs/mkfs.c index 19cb22c79..c76edb192 100644 --- a/commands/mkfs.mfs/mkfs.c +++ b/commands/mkfs.mfs/mkfs.c @@ -960,14 +960,14 @@ int bit; { /* Insert 'count' bits in the bitmap */ int w, s; - short *buf; + bitchunk_t *buf; - buf = (short *) alloc_block(); + buf = (bitchunk_t *) alloc_block(); if (block < 0) pexit("insert_bit called with negative argument"); get_block(block, (char *) buf); - w = bit / (8 * sizeof(short)); - s = bit % (8 * sizeof(short)); + w = bit / (8 * sizeof(bitchunk_t)); + s = bit % (8 * sizeof(bitchunk_t)); buf[w] |= (1 << s); put_block(block, (char *) buf); -- 2.44.0