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/restore/restore.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/restore/restore.h')
-rw-r--r-- | sbin/restore/restore.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sbin/restore/restore.h b/sbin/restore/restore.h index 8d7206d..d00c3b3 100644 --- a/sbin/restore/restore.h +++ b/sbin/restore/restore.h @@ -139,9 +139,11 @@ typedef struct rstdirdesc RST_DIR; * Useful macros */ #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))) #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 dprintf if (dflag) fprintf #define vprintf if (vflag) fprintf |