Stop defining major()/minor() and makedev()
Rely on what the system provides. These are not standardized macros but any relevant UNIX system will provide them. We can revisit this in the future if something breaks.
This commit is contained in:
7
tar.c
7
tar.c
@@ -17,13 +17,6 @@
|
|||||||
|
|
||||||
#define BLKSIZ 512
|
#define BLKSIZ 512
|
||||||
|
|
||||||
#undef major
|
|
||||||
#define major(dev) ((int)(((unsigned int)(dev) >> 8) & 0xff))
|
|
||||||
#undef minor
|
|
||||||
#define minor(dev) ((int)((dev) & 0xff))
|
|
||||||
#undef makedev
|
|
||||||
#define makedev(major, minor) (((major) << 8) | (minor))
|
|
||||||
|
|
||||||
enum Type {
|
enum Type {
|
||||||
REG = '0',
|
REG = '0',
|
||||||
AREG = '\0',
|
AREG = '\0',
|
||||||
|
Reference in New Issue
Block a user