X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=net%2Fipx%2Fipx_route.c;h=67774448efd966eb801dc822d0788e09a530be54;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=57faf8cbcd5a2f29130fbb0955ea45d10ccb2231;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/net/ipx/ipx_route.c b/net/ipx/ipx_route.c index 57faf8cbc..67774448e 100644 --- a/net/ipx/ipx_route.c +++ b/net/ipx/ipx_route.c @@ -16,7 +16,7 @@ #include LIST_HEAD(ipx_routes); -rwlock_t ipx_routes_lock = RW_LOCK_UNLOCKED; +DEFINE_RWLOCK(ipx_routes_lock); extern struct ipx_interface *ipx_internal_net; @@ -172,7 +172,7 @@ int ipxrtr_route_packet(struct sock *sk, struct sockaddr_ipx *usipx, struct iovec *iov, size_t len, int noblock) { struct sk_buff *skb; - struct ipx_opt *ipxs = ipx_sk(sk); + struct ipx_sock *ipxs = ipx_sk(sk); struct ipx_interface *intrfc; struct ipxhdr *ipx; size_t size;