diff options
Diffstat (limited to 'net/ipv4/udp.c')
-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 03bd70697481..7b7fcacec4a0 100644 --- a/net/ipv4/udp.c +++ b/net/ipv4/udp.c | |||
@@ -1551,14 +1551,14 @@ static void *udp_seq_start(struct seq_file *seq, loff_t *pos) | |||
1551 | __acquires(udp_hash_lock) | 1551 | __acquires(udp_hash_lock) |
1552 | { | 1552 | { |
1553 | read_lock(&udp_hash_lock); | 1553 | read_lock(&udp_hash_lock); |
1554 | return *pos ? udp_get_idx(seq, *pos-1) : (void *)1; | 1554 | return *pos ? udp_get_idx(seq, *pos-1) : SEQ_START_TOKEN; |
1555 | } | 1555 | } |
1556 | 1556 | ||
1557 | static void *udp_seq_next(struct seq_file *seq, void *v, loff_t *pos) | 1557 | static void *udp_seq_next(struct seq_file *seq, void *v, loff_t *pos) |
1558 | { | 1558 | { |
1559 | struct sock *sk; | 1559 | struct sock *sk; |
1560 | 1560 | ||
1561 | if (v == (void *)1) | 1561 | if (v == SEQ_START_TOKEN) |
1562 | sk = udp_get_idx(seq, 0); | 1562 | sk = udp_get_idx(seq, 0); |
1563 | else | 1563 | else |
1564 | sk = udp_get_next(seq, v); | 1564 | sk = udp_get_next(seq, v); |