From 5fe6f013e0a8a192a9585306aeeb5b2a2f900daa Mon Sep 17 00:00:00 2001 From: Thorsten Lockert Date: Tue, 11 Jun 1996 06:47:58 +0000 Subject: Use systems definition for getting major and minor numbers, and for creating a device; from FreeBSD --- bin/pax/pax.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bin/pax/pax.h') diff --git a/bin/pax/pax.h b/bin/pax/pax.h index 47afb61a891..1ca81280365 100644 --- a/bin/pax/pax.h +++ b/bin/pax/pax.h @@ -228,9 +228,9 @@ typedef struct oplist { #ifndef MIN #define MIN(a,b) (((a)<(b))?(a):(b)) #endif -#define MAJOR(x) (((unsigned)(x) >> 8) & 0xff) -#define MINOR(x) ((x) & 0xff) -#define TODEV(x, y) (((unsigned)(x) << 8) | ((unsigned)(y))) +#define MAJOR(x) major(x) +#define MINOR(x) minor(x) +#define TODEV(x, y) makedev((x), (y)) /* * General Defines -- cgit v1.2.3