提交 98e4321b 编写于 作者: D David S. Miller

genetlink: Make family a signed integer.

The idr_alloc(), idr_remove(), et al. routines all expect IDs to be
signed integers.  Therefore make the genl_family member 'id' signed
too.
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 b5718b5a
...@@ -48,7 +48,7 @@ struct genl_info; ...@@ -48,7 +48,7 @@ struct genl_info;
* @n_ops: number of operations supported by this family * @n_ops: number of operations supported by this family
*/ */
struct genl_family { struct genl_family {
unsigned int id; /* private */ int id; /* private */
unsigned int hdrsize; unsigned int hdrsize;
char name[GENL_NAMSIZ]; char name[GENL_NAMSIZ];
unsigned int version; unsigned int version;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册