diff options
author | mike <mike@FreeBSD.org> | 2002-09-25 04:06:37 +0000 |
---|---|---|
committer | mike <mike@FreeBSD.org> | 2002-09-25 04:06:37 +0000 |
commit | 86a758e51be945d9e690ee0802a21bf9a667b4e8 (patch) | |
tree | 2295edf76df9065e84ea0b415c9c13ecf434f1fa /sbin/dump/dump.h | |
parent | b9155304da025f935d34f191093267f40e40cdd2 (diff) | |
download | FreeBSD-src-86a758e51be945d9e690ee0802a21bf9a667b4e8.zip FreeBSD-src-86a758e51be945d9e690ee0802a21bf9a667b4e8.tar.gz |
Use the standardized CHAR_BIT constant instead of NBBY in userland.
Diffstat (limited to 'sbin/dump/dump.h')
-rw-r--r-- | sbin/dump/dump.h | 9 |
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! |