]> Zhao Yanbai Git Server - minix.git/commitdiff
mkfs.mfs: use bitchunk_t (reported by Maurizio Lombardi)
authorDavid van Moolenbroek <david@minix3.org>
Tue, 5 Apr 2011 19:42:08 +0000 (19:42 +0000)
committerDavid van Moolenbroek <david@minix3.org>
Tue, 5 Apr 2011 19:42:08 +0000 (19:42 +0000)
commands/mkfs.mfs/mkfs.c

index 19cb22c79875f1eb37ccba276d3cda44b770b7b4..c76edb19254dd8e000bc37b27c6189a417972158 100644 (file)
@@ -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);