summaryrefslogtreecommitdiff
path: root/include/sys
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-09-08 02:42:27 -0400
committerRich Felker <dalias@aerifal.cx>2012-09-08 02:42:27 -0400
commitb7afd7a7ec95fdc98dd31078891a9563d6f4ac73 (patch)
tree53c7564e697ffe078adf29d1671c20686b6838d0 /include/sys
parent997ba92a0fa85919b1c46346db8fb31b4e579c5a (diff)
downloadmusl-b7afd7a7ec95fdc98dd31078891a9563d6f4ac73.tar.gz
musl-b7afd7a7ec95fdc98dd31078891a9563d6f4ac73.tar.bz2
musl-b7afd7a7ec95fdc98dd31078891a9563d6f4ac73.tar.xz
musl-b7afd7a7ec95fdc98dd31078891a9563d6f4ac73.zip
sysmacros major/minor: result should have type unsigned int, not dev_t
Diffstat (limited to 'include/sys')
-rw-r--r--include/sys/sysmacros.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/sys/sysmacros.h b/include/sys/sysmacros.h
index 65ab60cd..2285271f 100644
--- a/include/sys/sysmacros.h
+++ b/include/sys/sysmacros.h
@@ -1,8 +1,8 @@
#ifndef _SYS_SYSMACROS_H
#define _SYS_SYSMACROS_H
-#define major(x) (((x) >> 8) & 0xff)
-#define minor(x) ((x) & 0xff)
+#define major(x) ((unsigned)((x) >> 8) & 0xff)
+#define minor(x) ((unsigned)(x) & 0xff)
#define makedev(x,y) (((x)<<8)|((y)&0xff))
#endif