summaryrefslogtreecommitdiffstats
path: root/sbin/dump/dump.h
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/dump/dump.h')
-rw-r--r--sbin/dump/dump.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/sbin/dump/dump.h b/sbin/dump/dump.h
index e200347..a148c6b 100644
--- a/sbin/dump/dump.h
+++ b/sbin/dump/dump.h
@@ -46,11 +46,14 @@ char *dumpinomap; /* map of files to be dumped */
* Map manipulation macros.
*/
#define SETINO(ino, map) \
- map[(u_int)((ino) - 1) / NBBY] |= 1 << ((u_int)((ino) - 1) % NBBY)
+ map[(u_int)((ino) - 1) / CHAR_BIT] |= \
+ 1 << ((u_int)((ino) - 1) % CHAR_BIT)
#define CLRINO(ino, map) \
- map[(u_int)((ino) - 1) / NBBY] &= ~(1 << ((u_int)((ino) - 1) % NBBY))
+ map[(u_int)((ino) - 1) / CHAR_BIT] &= \
+ ~(1 << ((u_int)((ino) - 1) % CHAR_BIT))
#define TSTINO(ino, map) \
- (map[(u_int)((ino) - 1) / NBBY] & (1 << ((u_int)((ino) - 1) % NBBY)))
+ (map[(u_int)((ino) - 1) / CHAR_BIT] & \
+ (1 << ((u_int)((ino) - 1) % CHAR_BIT)))
/*
* All calculations done in 0.1" units!
OpenPOWER on IntegriCloud