sbase

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

commit 817d23d5753df1751d989f7d27760b49f5cd1855
parent 87744a3d6cd76088867d357345e81f3da90bd497
Author: sin <sin@2f30.org>
Date:   Sun Oct  4 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:
tar.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',