提交 b7afd7a7 编写于 作者: R Rich Felker

sysmacros major/minor: result should have type unsigned int, not dev_t

上级 997ba92a
#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
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册