Commit e50a1046 authored by Andrew Morton's avatar Andrew Morton Committed by Jeff Garzik

[NET]: Fix 64-bit warnings in af_netlink.c

parent 3db762f7
...@@ -968,7 +968,7 @@ int netlink_post(int unit, struct sk_buff *skb) ...@@ -968,7 +968,7 @@ int netlink_post(int unit, struct sk_buff *skb)
#ifdef CONFIG_PROC_FS #ifdef CONFIG_PROC_FS
static struct sock *netlink_seq_socket_idx(struct seq_file *seq, loff_t pos) static struct sock *netlink_seq_socket_idx(struct seq_file *seq, loff_t pos)
{ {
int i; long i;
struct sock *s; struct sock *s;
struct hlist_node *node; struct hlist_node *node;
loff_t off = 0; loff_t off = 0;
...@@ -1002,7 +1002,7 @@ static void *netlink_seq_next(struct seq_file *seq, void *v, loff_t *pos) ...@@ -1002,7 +1002,7 @@ static void *netlink_seq_next(struct seq_file *seq, void *v, loff_t *pos)
s = sk_next(v); s = sk_next(v);
if (!s) { if (!s) {
int i = (int) seq->private; long i = (long)seq->private;
while (++i < MAX_LINKS) { while (++i < MAX_LINKS) {
s = sk_head(&nl_table[i]); s = sk_head(&nl_table[i]);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment