From: YOSHIFUJI Hideaki Date: Tue, 1 Apr 2008 02:38:15 +0000 (-0700) Subject: [IP] UDP: Use SEQ_START_TOKEN. X-Git-Tag: v2.6.25-rc9~99^2~13 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=b50660f1fe4ebd6129064e4fba0bd882b60c2425;p=linux-2.6-omap-h63xx.git [IP] UDP: Use SEQ_START_TOKEN. Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller --- diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c index 7ea1b67b6de..1704c1474ea 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);