diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2009-09-22 03:26:38 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2009-09-22 03:26:38 +0200 |
commit | 30f1d146129d191ad26bb171b68b2e42d18a8558 (patch) | |
tree | 594efaa1fcce8582c0240c697f13ec9abb6bb415 /pfinet | |
parent | db228ac2de3515a726e786fddfd257b48c7e1c29 (diff) |
Fix assignment from incompatible pointer type
* pfinet/linux-src/net/ipv4/tcp_ipv4.c (tcp_v4_connect): xchg
&rt->u.dst instead of just rt with sk->dst_cache.
Diffstat (limited to 'pfinet')
-rw-r--r-- | pfinet/linux-src/net/ipv4/tcp_ipv4.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pfinet/linux-src/net/ipv4/tcp_ipv4.c b/pfinet/linux-src/net/ipv4/tcp_ipv4.c index 2364de33..ab6db9bb 100644 --- a/pfinet/linux-src/net/ipv4/tcp_ipv4.c +++ b/pfinet/linux-src/net/ipv4/tcp_ipv4.c @@ -613,7 +613,7 @@ int tcp_v4_connect(struct sock *sk, struct sockaddr *uaddr, int addr_len) return -ENETUNREACH; } - dst_release(xchg(&sk->dst_cache, rt)); + dst_release(xchg(&sk->dst_cache, &rt->u.dst)); buff = sock_wmalloc(sk, (MAX_HEADER + sk->prot->max_header), 0, GFP_KERNEL); |