mirror of
https://github.com/fluencelabs/musl
synced 2025-04-24 14:52:13 +00:00
sysmacros major/minor: result should have type unsigned int, not dev_t
This commit is contained in:
parent
997ba92a0f
commit
b7afd7a7ec
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user