summaryrefslogtreecommitdiff
path: root/bin/pax/pax.h
diff options
context:
space:
mode:
authorThorsten Lockert <tholo@cvs.openbsd.org>1996-06-11 06:47:58 +0000
committerThorsten Lockert <tholo@cvs.openbsd.org>1996-06-11 06:47:58 +0000
commit5fe6f013e0a8a192a9585306aeeb5b2a2f900daa (patch)
tree82c86adc34e0a3be0f78f07dd06065cbe033c6a4 /bin/pax/pax.h
parent5b132a3370d767d032b1a7d49c9fd9ccce6f4e30 (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.h6
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