summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/devices.h
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2005-12-02 00:37:21 +0000
committerChristopher Faylor <me@cgf.cx>2005-12-02 00:37:21 +0000
commit032295a9884b6d64b23ae0157318abae6ac963b4 (patch)
treecbc73b3b01505b2f25a579563bab60c8818d2f66 /winsup/cygwin/devices.h
parent8b3c84227f37ec82a7e5ffe1d32349546b56a5f2 (diff)
downloadcygnal-032295a9884b6d64b23ae0157318abae6ac963b4.tar.gz
cygnal-032295a9884b6d64b23ae0157318abae6ac963b4.tar.bz2
cygnal-032295a9884b6d64b23ae0157318abae6ac963b4.zip
* devices.h (_major): Revert previous ill-advised change.
(_minor): Ditto.
Diffstat (limited to 'winsup/cygwin/devices.h')
-rw-r--r--winsup/cygwin/devices.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/devices.h b/winsup/cygwin/devices.h
index c885fb09d..5d294ffbe 100644
--- a/winsup/cygwin/devices.h
+++ b/winsup/cygwin/devices.h
@@ -14,8 +14,8 @@ typedef mode_t _mode_t;
typedef __dev32_t _dev_t;
#define FHDEV(maj, min) ((((unsigned) (maj)) << (sizeof (_major_t) * 8)) | (unsigned) (min))
-#define _minor(dev) (((_minor_t) dev) & ((1 << (sizeof (_minor_t) * 8)) - 1))
-#define _major(dev) (((_major_t) dev) >> (sizeof (_major_t) * 8))
+#define _minor(dev) ((dev) & ((1 << (sizeof (_minor_t) * 8)) - 1))
+#define _major(dev) ((dev) >> (sizeof (_major_t) * 8))
enum fh_devices
{