Commit 0479ea0eab197b3e5d4c731f526c02e5e3fbfbd0
Committed by
Linus Torvalds
1 parent
b5b82df6f4
Exists in
master
and in
39 other branches
Fix incorrect prototype for ipxrtr_route_packet()
The function ipxrtr_route_packet() takes a 'len' argument of type size_t. However, its prototype in af_ipx.c incorrectly suggests that the corresponding argument is of type 'int' instead. Discovered by building with --combine and letting the compiler see it all at once. Signed-off-by: David Woodhouse <dwmw2@infradead.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
net/ipx/af_ipx.c
... | ... | @@ -87,7 +87,7 @@ |
87 | 87 | unsigned char *node); |
88 | 88 | extern void ipxrtr_del_routes(struct ipx_interface *intrfc); |
89 | 89 | extern int ipxrtr_route_packet(struct sock *sk, struct sockaddr_ipx *usipx, |
90 | - struct iovec *iov, int len, int noblock); | |
90 | + struct iovec *iov, size_t len, int noblock); | |
91 | 91 | extern int ipxrtr_route_skb(struct sk_buff *skb); |
92 | 92 | extern struct ipx_route *ipxrtr_lookup(__be32 net); |
93 | 93 | extern int ipxrtr_ioctl(unsigned int cmd, void __user *arg); |