projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e0751f
)
[IP] UDP: Use SEQ_START_TOKEN.
author
YOSHIFUJI Hideaki
<
[email protected]
>
Tue, 1 Apr 2008 02:38:15 +0000
(19:38 -0700)
committer
David S. Miller
<
[email protected]
>
Tue, 1 Apr 2008 02:38:15 +0000
(19:38 -0700)
Signed-off-by: YOSHIFUJI Hideaki <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/ipv4/udp.c
patch
|
blob
|
history
diff --git
a/net/ipv4/udp.c
b/net/ipv4/udp.c
index 7ea1b67b6de1cccbbc5d4332ef45df04578b8aae..1704c1474ea1c622e4c9c4375beea692b12f8072 100644
(file)
--- 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);