diff options
author | David S. Miller <davem@davemloft.net> | 2010-12-01 20:28:18 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-12-01 20:28:18 -0500 |
commit | 8790ca172a1550949804a2ad59ccea310f680c9f (patch) | |
tree | f9a0bf451adc36dab6e4cb9f5430827bbd827384 /net/ipv4 | |
parent | 67d5288049f46f816181f63eaa8f1371877ad8ea (diff) |
inetpeer: Kill use of inet_peer_address_t typedef.
They are verboten these days.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/inetpeer.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/ipv4/inetpeer.c b/net/ipv4/inetpeer.c index f95b89f3916d..d9bc85751c74 100644 --- a/net/ipv4/inetpeer.c +++ b/net/ipv4/inetpeer.c | |||
@@ -161,8 +161,8 @@ static void unlink_from_unused(struct inet_peer *p) | |||
161 | } | 161 | } |
162 | } | 162 | } |
163 | 163 | ||
164 | static int addr_compare(const inet_peer_address_t *a, | 164 | static int addr_compare(const struct inetpeer_addr *a, |
165 | const inet_peer_address_t *b) | 165 | const struct inetpeer_addr *b) |
166 | { | 166 | { |
167 | int i, n = (a->family == AF_INET ? 1 : 4); | 167 | int i, n = (a->family == AF_INET ? 1 : 4); |
168 | 168 | ||
@@ -211,7 +211,7 @@ static int addr_compare(const inet_peer_address_t *a, | |||
211 | * But every pointer we follow is guaranteed to be valid thanks to RCU. | 211 | * But every pointer we follow is guaranteed to be valid thanks to RCU. |
212 | * We exit from this function if number of links exceeds PEER_MAXDEPTH | 212 | * We exit from this function if number of links exceeds PEER_MAXDEPTH |
213 | */ | 213 | */ |
214 | static struct inet_peer *lookup_rcu_bh(const inet_peer_address_t *daddr, | 214 | static struct inet_peer *lookup_rcu_bh(const struct inetpeer_addr *daddr, |
215 | struct inet_peer_base *base) | 215 | struct inet_peer_base *base) |
216 | { | 216 | { |
217 | struct inet_peer *u = rcu_dereference_bh(base->root); | 217 | struct inet_peer *u = rcu_dereference_bh(base->root); |
@@ -472,7 +472,7 @@ static int cleanup_once(unsigned long ttl) | |||
472 | } | 472 | } |
473 | 473 | ||
474 | /* Called with or without local BH being disabled. */ | 474 | /* Called with or without local BH being disabled. */ |
475 | struct inet_peer *inet_getpeer(inet_peer_address_t *daddr, int create) | 475 | struct inet_peer *inet_getpeer(struct inetpeer_addr *daddr, int create) |
476 | { | 476 | { |
477 | struct inet_peer __rcu **stack[PEER_MAXDEPTH], ***stackptr; | 477 | struct inet_peer __rcu **stack[PEER_MAXDEPTH], ***stackptr; |
478 | struct inet_peer_base *base = family_to_base(AF_INET); | 478 | struct inet_peer_base *base = family_to_base(AF_INET); |