Skip to content

Commit 0479ea0

Browse files
dwmw2Linus Torvalds
authored andcommitted
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 <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent b5b82df commit 0479ea0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/ipx/af_ipx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ extern int ipxrtr_add_route(__be32 network, struct ipx_interface *intrfc,
8787
unsigned char *node);
8888
extern void ipxrtr_del_routes(struct ipx_interface *intrfc);
8989
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);
9191
extern int ipxrtr_route_skb(struct sk_buff *skb);
9292
extern struct ipx_route *ipxrtr_lookup(__be32 net);
9393
extern int ipxrtr_ioctl(unsigned int cmd, void __user *arg);

0 commit comments

Comments
 (0)