]> err.no Git - linux-2.6/commitdiff
[NETLINK] genetlink: fix cmd type in genl_ops to be consistent to u8
authorPer Liden <per.liden@ericsson.com>
Tue, 3 Jan 2006 22:13:29 +0000 (14:13 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 3 Jan 2006 22:13:29 +0000 (14:13 -0800)
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>
include/net/genetlink.h
net/netlink/genetlink.c

index 52d8b1a73d521b5bb792148a2f17fff854aec9d6..c5b96b2b81554e452630774254c1a2ae4e9a9f34 100644 (file)
@@ -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,
index 287cfcc56951a86d145bd442a5dd7e9229de44e5..3b1378498d50b12647f2ea433a341b16502e1ac9 100644 (file)
@@ -441,7 +441,7 @@ errout:
 }
 
 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;