diff options
author | Thorsten Lockert <tholo@cvs.openbsd.org> | 1996-06-11 06:47:58 +0000 |
---|---|---|
committer | Thorsten Lockert <tholo@cvs.openbsd.org> | 1996-06-11 06:47:58 +0000 |
commit | 5fe6f013e0a8a192a9585306aeeb5b2a2f900daa (patch) | |
tree | 82c86adc34e0a3be0f78f07dd06065cbe033c6a4 /bin/pax/pax.h | |
parent | 5b132a3370d767d032b1a7d49c9fd9ccce6f4e30 (diff) |
Use systems definition for getting major and minor numbers, and for
creating a device; from FreeBSD
Diffstat (limited to 'bin/pax/pax.h')
-rw-r--r-- | bin/pax/pax.h | 6 |
1 files changed, 3 insertions, 3 deletions
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 |