]> git.hungrycats.org Git - linux/commitdiff
[X25]: Use size_t for size in {send,recv}msg.
authorStephen Hemminger <shemminger@osdl.org>
Thu, 8 Jan 2004 17:57:33 +0000 (09:57 -0800)
committerStephen Hemminger <shemminger@osdl.org>
Thu, 8 Jan 2004 17:57:33 +0000 (09:57 -0800)
net/x25/af_x25.c

index 74446f04f610d3fab707adc20a7895ad0b941ed3..260d431650a93fee3f496d004c633d62c3fe052c 100644 (file)
@@ -910,7 +910,7 @@ out_clear_request:
 }
 
 static int x25_sendmsg(struct kiocb *iocb, struct socket *sock,
-                      struct msghdr *msg, int len)
+                      struct msghdr *msg, size_t len)
 {
        struct sock *sk = sock->sk;
        struct x25_opt *x25 = x25_sk(sk);
@@ -919,7 +919,8 @@ static int x25_sendmsg(struct kiocb *iocb, struct socket *sock,
        struct sk_buff *skb;
        unsigned char *asmptr;
        int noblock = msg->msg_flags & MSG_DONTWAIT;
-       int size, qbit = 0, rc = -EINVAL;
+       size_t size;
+       int qbit = 0, rc = -EINVAL;
 
        if (msg->msg_flags & ~(MSG_DONTWAIT | MSG_OOB | MSG_EOR))
                goto out;
@@ -1085,13 +1086,14 @@ out_kfree_skb:
 
 
 static int x25_recvmsg(struct kiocb *iocb, struct socket *sock,
-                      struct msghdr *msg, int size,
+                      struct msghdr *msg, size_t size,
                       int flags)
 {
        struct sock *sk = sock->sk;
        struct x25_opt *x25 = x25_sk(sk);
        struct sockaddr_x25 *sx25 = (struct sockaddr_x25 *)msg->msg_name;
-       int copied, qbit;
+       size_t copied;
+       int qbit;
        struct sk_buff *skb;
        unsigned char *asmptr;
        int rc = -ENOTCONN;