Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
b6c65c62
Commit
b6c65c62
authored
Jan 08, 2004
by
Stephen Hemminger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IRDA]: Use size_t for size in {send,recv}msg.
parent
8b80624e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
net/irda/af_irda.c
net/irda/af_irda.c
+8
-7
No files found.
net/irda/af_irda.c
View file @
b6c65c62
...
...
@@ -1257,7 +1257,7 @@ static int irda_release(struct socket *sock)
* fragment the message if necessary
*/
static
int
irda_sendmsg
(
struct
kiocb
*
iocb
,
struct
socket
*
sock
,
struct
msghdr
*
msg
,
in
t
len
)
struct
msghdr
*
msg
,
size_
t
len
)
{
struct
sock
*
sk
=
sock
->
sk
;
struct
irda_sock
*
self
;
...
...
@@ -1329,12 +1329,13 @@ static int irda_sendmsg(struct kiocb *iocb, struct socket *sock,
* 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
,
in
t
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 @@ static int irda_recvmsg_dgram(struct kiocb *iocb, struct socket *sock,
* Function irda_recvmsg_stream (iocb, sock, msg, size, flags)
*/
static
int
irda_recvmsg_stream
(
struct
kiocb
*
iocb
,
struct
socket
*
sock
,
struct
msghdr
*
msg
,
in
t
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
;
in
t
copied
=
0
;
size_
t
copied
=
0
;
int
target
=
1
;
DECLARE_WAITQUEUE
(
waitq
,
current
);
...
...
@@ -1505,7 +1506,7 @@ static int irda_recvmsg_stream(struct kiocb *iocb, struct socket *sock,
*
*/
static
int
irda_sendmsg_dgram
(
struct
kiocb
*
iocb
,
struct
socket
*
sock
,
struct
msghdr
*
msg
,
in
t
len
)
struct
msghdr
*
msg
,
size_
t
len
)
{
struct
sock
*
sk
=
sock
->
sk
;
struct
irda_sock
*
self
;
...
...
@@ -1571,7 +1572,7 @@ static int irda_sendmsg_dgram(struct kiocb *iocb, struct socket *sock,
*/
#ifdef CONFIG_IRDA_ULTRA
static
int
irda_sendmsg_ultra
(
struct
kiocb
*
iocb
,
struct
socket
*
sock
,
struct
msghdr
*
msg
,
in
t
len
)
struct
msghdr
*
msg
,
size_
t
len
)
{
struct
sock
*
sk
=
sock
->
sk
;
struct
irda_sock
*
self
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment