提交 539afedf 编写于 作者: J Jianjun Kong 提交者: David S. Miller

net: clean up net/ipv4/devinet.c

Signed-off-by: NJianjun Kong <jianjun@zeuux.org>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 f4cca7ff
...@@ -1101,7 +1101,7 @@ static int inetdev_event(struct notifier_block *this, unsigned long event, ...@@ -1101,7 +1101,7 @@ static int inetdev_event(struct notifier_block *this, unsigned long event,
} }
static struct notifier_block ip_netdev_notifier = { static struct notifier_block ip_netdev_notifier = {
.notifier_call =inetdev_event, .notifier_call = inetdev_event,
}; };
static inline size_t inet_nlmsg_size(void) static inline size_t inet_nlmsg_size(void)
...@@ -1188,7 +1188,7 @@ static int inet_dump_ifaddr(struct sk_buff *skb, struct netlink_callback *cb) ...@@ -1188,7 +1188,7 @@ static int inet_dump_ifaddr(struct sk_buff *skb, struct netlink_callback *cb)
return skb->len; return skb->len;
} }
static void rtmsg_ifa(int event, struct in_ifaddr* ifa, struct nlmsghdr *nlh, static void rtmsg_ifa(int event, struct in_ifaddr *ifa, struct nlmsghdr *nlh,
u32 pid) u32 pid)
{ {
struct sk_buff *skb; struct sk_buff *skb;
...@@ -1255,7 +1255,7 @@ static void inet_forward_change(struct net *net) ...@@ -1255,7 +1255,7 @@ static void inet_forward_change(struct net *net)
} }
static int devinet_conf_proc(ctl_table *ctl, int write, static int devinet_conf_proc(ctl_table *ctl, int write,
struct file* filp, void __user *buffer, struct file *filp, void __user *buffer,
size_t *lenp, loff_t *ppos) size_t *lenp, loff_t *ppos)
{ {
int ret = proc_dointvec(ctl, write, filp, buffer, lenp, ppos); int ret = proc_dointvec(ctl, write, filp, buffer, lenp, ppos);
...@@ -1327,7 +1327,7 @@ static int devinet_conf_sysctl(ctl_table *table, ...@@ -1327,7 +1327,7 @@ static int devinet_conf_sysctl(ctl_table *table,
} }
static int devinet_sysctl_forward(ctl_table *ctl, int write, static int devinet_sysctl_forward(ctl_table *ctl, int write,
struct file* filp, void __user *buffer, struct file *filp, void __user *buffer,
size_t *lenp, loff_t *ppos) size_t *lenp, loff_t *ppos)
{ {
int *valp = ctl->data; int *valp = ctl->data;
...@@ -1356,7 +1356,7 @@ static int devinet_sysctl_forward(ctl_table *ctl, int write, ...@@ -1356,7 +1356,7 @@ static int devinet_sysctl_forward(ctl_table *ctl, int write,
} }
int ipv4_doint_and_flush(ctl_table *ctl, int write, int ipv4_doint_and_flush(ctl_table *ctl, int write,
struct file* filp, void __user *buffer, struct file *filp, void __user *buffer,
size_t *lenp, loff_t *ppos) size_t *lenp, loff_t *ppos)
{ {
int *valp = ctl->data; int *valp = ctl->data;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册