Skip to content

Commit

Permalink
[NETLINK] genetlink: fix cmd type in genl_ops to be consistent to u8
Browse files Browse the repository at this point in the history
Signed-off-by: Per Liden <per.liden@ericsson.com>
ACKed-by: Jamal Hadi Salim <hadi@cyberus.ca>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Per Liden authored and David S. Miller committed Jan 3, 2006
1 parent fd19f32 commit b461d2f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/net/genetlink.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ struct genl_info
*/
struct genl_ops
{
unsigned int cmd;
u8 cmd;
unsigned int flags;
struct nla_policy *policy;
int (*doit)(struct sk_buff *skb,
Expand Down
2 changes: 1 addition & 1 deletion net/netlink/genetlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ static int ctrl_dumpfamily(struct sk_buff *skb, struct netlink_callback *cb)
}

static struct sk_buff *ctrl_build_msg(struct genl_family *family, u32 pid,
int seq, int cmd)
int seq, u8 cmd)
{
struct sk_buff *skb;
int err;
Expand Down

0 comments on commit b461d2f

Please sign in to comment.