summaryrefslogtreecommitdiffstats
path: root/sbin/restore/restore.h
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/restore/restore.h')
-rw-r--r--sbin/restore/restore.h6
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
OpenPOWER on IntegriCloud