Commit e9e1bef3 authored by Stephen Hemminger's avatar Stephen Hemminger

[PPPOE]: Use size_t for size in {send,recv}msg.

parent 39ae691d
...@@ -775,8 +775,8 @@ static int pppoe_ioctl(struct socket *sock, unsigned int cmd, ...@@ -775,8 +775,8 @@ static int pppoe_ioctl(struct socket *sock, unsigned int cmd,
} }
static int pppoe_sendmsg(struct kiocb *iocb, struct socket *sock, struct msghdr *m, static int pppoe_sendmsg(struct kiocb *iocb, struct socket *sock,
int total_len) struct msghdr *m, size_t total_len)
{ {
struct sk_buff *skb = NULL; struct sk_buff *skb = NULL;
struct sock *sk = sock->sk; struct sock *sk = sock->sk;
...@@ -939,7 +939,7 @@ static struct ppp_channel_ops pppoe_chan_ops = { ...@@ -939,7 +939,7 @@ static struct ppp_channel_ops pppoe_chan_ops = {
}; };
static int pppoe_recvmsg(struct kiocb *iocb, struct socket *sock, static int pppoe_recvmsg(struct kiocb *iocb, struct socket *sock,
struct msghdr *m, int total_len, int flags) struct msghdr *m, size_t total_len, int flags)
{ {
struct sock *sk = sock->sk; struct sock *sk = sock->sk;
struct sk_buff *skb = NULL; struct sk_buff *skb = NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment