* [PATCH] (12/17) irda -- size_t for send/recvmsg
@ 2004-01-09 22:03 Stephen Hemminger
2004-01-08 22:56 ` Jean Tourrilhes
0 siblings, 1 reply; 4+ messages in thread
From: Stephen Hemminger @ 2004-01-09 22:03 UTC (permalink / raw)
To: David S. Miller, Jean Tourrilhes; +Cc: netdev
Convert IRDA to unsigned length for send/recv msg.
diff -Nru a/net/irda/af_irda.c b/net/irda/af_irda.c
--- a/net/irda/af_irda.c Mon Dec 8 16:20:04 2003
+++ b/net/irda/af_irda.c Mon Dec 8 16:20:04 2003
@@ -1257,7 +1257,7 @@
* fragment the message if necessary
*/
static int irda_sendmsg(struct kiocb *iocb, struct socket *sock,
- struct msghdr *msg, int len)
+ struct msghdr *msg, size_t len)
{
struct sock *sk = sock->sk;
struct irda_sock *self;
@@ -1329,12 +1329,13 @@
* after being read, regardless of how much the user actually read
*/
static int irda_recvmsg_dgram(struct kiocb *iocb, struct socket *sock,
- struct msghdr *msg, int size, int flags)
+ struct msghdr *msg, size_t size, int flags)
{
struct sock *sk = sock->sk;
struct irda_sock *self = irda_sk(sk);
struct sk_buff *skb;
- int copied, err;
+ size_t copied;
+ int err;
IRDA_DEBUG(4, "%s()\n", __FUNCTION__);
@@ -1379,12 +1380,12 @@
* Function irda_recvmsg_stream (iocb, sock, msg, size, flags)
*/
static int irda_recvmsg_stream(struct kiocb *iocb, struct socket *sock,
- struct msghdr *msg, int size, int flags)
+ struct msghdr *msg, size_t size, int flags)
{
struct sock *sk = sock->sk;
struct irda_sock *self = irda_sk(sk);
int noblock = flags & MSG_DONTWAIT;
- int copied = 0;
+ size_t copied = 0;
int target = 1;
DECLARE_WAITQUEUE(waitq, current);
@@ -1505,7 +1506,7 @@
*
*/
static int irda_sendmsg_dgram(struct kiocb *iocb, struct socket *sock,
- struct msghdr *msg, int len)
+ struct msghdr *msg, size_t len)
{
struct sock *sk = sock->sk;
struct irda_sock *self;
@@ -1571,7 +1572,7 @@
*/
#ifdef CONFIG_IRDA_ULTRA
static int irda_sendmsg_ultra(struct kiocb *iocb, struct socket *sock,
- struct msghdr *msg, int len)
+ struct msghdr *msg, size_t len)
{
struct sock *sk = sock->sk;
struct irda_sock *self;
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH] (12/17) irda -- size_t for send/recvmsg
2004-01-09 22:03 [PATCH] (12/17) irda -- size_t for send/recvmsg Stephen Hemminger
@ 2004-01-08 22:56 ` Jean Tourrilhes
2004-01-08 23:36 ` David S. Miller
0 siblings, 1 reply; 4+ messages in thread
From: Jean Tourrilhes @ 2004-01-08 22:56 UTC (permalink / raw)
To: Stephen Hemminger; +Cc: David S. Miller, netdev
On Fri, Jan 09, 2004 at 02:03:17PM -0800, Stephen Hemminger wrote:
> Convert IRDA to unsigned length for send/recv msg.
Ok, I've added that on my web page and will remind Dave if he
doesn't pick it up.
Jean
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] (12/17) irda -- size_t for send/recvmsg
2004-01-08 22:56 ` Jean Tourrilhes
@ 2004-01-08 23:36 ` David S. Miller
2004-01-08 23:47 ` Jean Tourrilhes
0 siblings, 1 reply; 4+ messages in thread
From: David S. Miller @ 2004-01-08 23:36 UTC (permalink / raw)
To: jt; +Cc: jt, shemminger, netdev
On Thu, 8 Jan 2004 14:56:57 -0800
Jean Tourrilhes <jt@bougret.hpl.hp.com> wrote:
> On Fri, Jan 09, 2004 at 02:03:17PM -0800, Stephen Hemminger wrote:
> > Convert IRDA to unsigned length for send/recv msg.
>
> Ok, I've added that on my web page and will remind Dave if he
> doesn't pick it up.
Don't worry, I'll queue all of these up for 2.6.2, it's too late for 2.6.1 at this
point.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] (12/17) irda -- size_t for send/recvmsg
2004-01-08 23:36 ` David S. Miller
@ 2004-01-08 23:47 ` Jean Tourrilhes
0 siblings, 0 replies; 4+ messages in thread
From: Jean Tourrilhes @ 2004-01-08 23:47 UTC (permalink / raw)
To: David S. Miller; +Cc: shemminger, netdev
On Thu, Jan 08, 2004 at 03:36:17PM -0800, David S. Miller wrote:
> On Thu, 8 Jan 2004 14:56:57 -0800
> Jean Tourrilhes <jt@bougret.hpl.hp.com> wrote:
>
> > On Fri, Jan 09, 2004 at 02:03:17PM -0800, Stephen Hemminger wrote:
> > > Convert IRDA to unsigned length for send/recv msg.
> >
> > Ok, I've added that on my web page and will remind Dave if he
> > doesn't pick it up.
>
> Don't worry, I'll queue all of these up for 2.6.2, it's too late for 2.6.1 at this
> point.
Perfect. 2.6.2 is what I was aiming for, it's not like we are
in a hurry.
Thanks a lot !
Jean
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-01-09 22:03 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-09 22:03 [PATCH] (12/17) irda -- size_t for send/recvmsg Stephen Hemminger
2004-01-08 22:56 ` Jean Tourrilhes
2004-01-08 23:36 ` David S. Miller
2004-01-08 23:47 ` Jean Tourrilhes
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).