diff options
author | YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> | 2008-04-01 04:38:15 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-04-01 04:38:15 +0200 |
commit | b50660f1fe4ebd6129064e4fba0bd882b60c2425 (patch) | |
tree | 347215a85892028efa2b8b6d6abb5538f6505282 | |
parent | [NET]: Remove Documentation/networking/sk98lin.txt (diff) | |
download | linux-b50660f1fe4ebd6129064e4fba0bd882b60c2425.tar.xz linux-b50660f1fe4ebd6129064e4fba0bd882b60c2425.zip |
[IP] UDP: Use SEQ_START_TOKEN.
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/ipv4/udp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c index 7ea1b67b6de1..1704c1474ea1 100644 --- a/net/ipv4/udp.c +++ b/net/ipv4/udp.c @@ -1556,14 +1556,14 @@ static void *udp_seq_start(struct seq_file *seq, loff_t *pos) __acquires(udp_hash_lock) { read_lock(&udp_hash_lock); - return *pos ? udp_get_idx(seq, *pos-1) : (void *)1; + return *pos ? udp_get_idx(seq, *pos-1) : SEQ_START_TOKEN; } static void *udp_seq_next(struct seq_file *seq, void *v, loff_t *pos) { struct sock *sk; - if (v == (void *)1) + if (v == SEQ_START_TOKEN) sk = udp_get_idx(seq, 0); else sk = udp_get_next(seq, v); |