]> git.hungrycats.org Git - linux/commitdiff
[NET]: Fix 64-bit warnings in af_netlink.c
authorAndrew Morton <akpm@osdl.org>
Wed, 3 Sep 2003 17:27:18 +0000 (10:27 -0700)
committerJeff Garzik <jgarzik@redhat.com>
Wed, 3 Sep 2003 17:27:18 +0000 (10:27 -0700)
net/netlink/af_netlink.c

index fed773b5f439f20771cf91ec38aebd3a47b9854b..3347859a1665e21927dec74b5a0fe53d45140d2b 100644 (file)
@@ -968,7 +968,7 @@ int netlink_post(int unit, struct sk_buff *skb)
 #ifdef CONFIG_PROC_FS
 static struct sock *netlink_seq_socket_idx(struct seq_file *seq, loff_t pos)
 {
-       int i;
+       long i;
        struct sock *s;
        struct hlist_node *node;
        loff_t off = 0;
@@ -1002,7 +1002,7 @@ static void *netlink_seq_next(struct seq_file *seq, void *v, loff_t *pos)
                
        s = sk_next(v);
        if (!s) {
-               int i = (int) seq->private; 
+               long i = (long)seq->private;
 
                while (++i < MAX_LINKS) {
                        s = sk_head(&nl_table[i]);