Skip to contentSkip to conversation

(4/17) pppoe -- size_t in send/recvmsg

PATCH New Stephen Hemminger 1 participant 1 message Jan 9, 2004

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 (4/17) pppoe -- size_t in send/recvmsg

Convert PPPoe for size_t in send/recv msg

drivers/net/pppoe.c +3 -3
diff -Nru a/drivers/net/pppoe.c b/drivers/net/pppoe.c
@@ -775,8 +775,8 @@
 }
 
 
-static int pppoe_sendmsg(struct kiocb *iocb, struct socket *sock, struct msghdr *m,
-		  int total_len)
+static int pppoe_sendmsg(struct kiocb *iocb, struct socket *sock, 
+		  struct msghdr *m, size_t total_len)
 {
 	struct sk_buff *skb = NULL;
 	struct sock *sk = sock->sk;
@@ -939,7 +939,7 @@
 };
 
 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 sk_buff *skb = NULL;