From: David van Moolenbroek Date: Tue, 5 Apr 2011 19:42:08 +0000 (+0000) Subject: mkfs.mfs: use bitchunk_t (reported by Maurizio Lombardi) X-Git-Tag: v3.2.0~597 X-Git-Url: http://zhaoyanbai.com/repos/man.host.html?a=commitdiff_plain;h=8e5cad159f46984437314305959633f5a6bd9698;p=minix.git mkfs.mfs: use bitchunk_t (reported by Maurizio Lombardi) --- 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);