Commit 9d99fd6a authored by David S. Miller's avatar David S. Miller

net/ipv4/ip_proc.c: Fix 64-bit warnings.

parent d8dce7d5
...@@ -219,7 +219,7 @@ static __inline__ struct sock *udp_get_bucket(struct seq_file *seq, loff_t *pos) ...@@ -219,7 +219,7 @@ static __inline__ struct sock *udp_get_bucket(struct seq_file *seq, loff_t *pos)
* temporary HACK till we have a solution to * temporary HACK till we have a solution to
* get more state passed to seq_show -acme * get more state passed to seq_show -acme
*/ */
seq->private = (void *)(int)bucket; seq->private = (void *)(long)bucket;
goto out; goto out;
} }
out: out:
...@@ -289,7 +289,7 @@ static int udp_seq_show(struct seq_file *seq, void *v) ...@@ -289,7 +289,7 @@ static int udp_seq_show(struct seq_file *seq, void *v)
else { else {
char tmpbuf[129]; char tmpbuf[129];
udp_format_sock(v, tmpbuf, (int)seq->private); udp_format_sock(v, tmpbuf, (long)seq->private);
seq_printf(seq, "%-127s\n", tmpbuf); seq_printf(seq, "%-127s\n", tmpbuf);
} }
return 0; return 0;
......
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