Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 88033
b: refs/heads/master
c: b50660f
h: refs/heads/master
i:
  88031: 4b8b5cc
v: v3
  • Loading branch information
YOSHIFUJI Hideaki authored and David S. Miller committed Apr 1, 2008
1 parent 1fe0e52 commit 9704369
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5e0751f57ae1aa5cda285f8c565ce202d8d5e5a3
refs/heads/master: b50660f1fe4ebd6129064e4fba0bd882b60c2425
4 changes: 2 additions & 2 deletions trunk/net/ipv4/udp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9704369

Please sign in to comment.