sbase

suckless unix tools
git clone git://git.2f30.org/sbase
Log | Files | Refs | README | LICENSE

commit f14a8968913a4a86064b1688790880bb94fe5a53
parent ea986ea50489969a0c4201a0c4e56efeef214914
Author: sin <sin@2f30.org>
Date:   Sun,  4 Oct 2015 16:36:39 +0100

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.

Diffstat:
Mtar.c | 7-------
1 file changed, 0 insertions(+), 7 deletions(-)

diff --git a/tar.c b/tar.c @@ -17,13 +17,6 @@ #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 { REG = '0', AREG = '\0',