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
Kirill Smelkov
linux
Commits
7153ce0e
Commit
7153ce0e
authored
Jan 08, 2004
by
Stephen Hemminger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[UNIX]: Use size_t for size in {send,recv}msg.
parent
2bc9c2cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
net/unix/af_unix.c
net/unix/af_unix.c
+5
-5
No files found.
net/unix/af_unix.c
View file @
7153ce0e
...
...
@@ -1176,7 +1176,7 @@ static void unix_attach_fds(struct scm_cookie *scm, struct sk_buff *skb)
*/
static
int
unix_dgram_sendmsg
(
struct
kiocb
*
kiocb
,
struct
socket
*
sock
,
struct
msghdr
*
msg
,
in
t
len
)
struct
msghdr
*
msg
,
size_
t
len
)
{
struct
sock_iocb
*
siocb
=
kiocb_to_siocb
(
kiocb
);
struct
sock
*
sk
=
sock
->
sk
;
...
...
@@ -1217,7 +1217,7 @@ static int unix_dgram_sendmsg(struct kiocb *kiocb, struct socket *sock,
goto
out
;
err
=
-
EMSGSIZE
;
if
(
(
unsigned
)
len
>
sk
->
sk_sndbuf
-
32
)
if
(
len
>
sk
->
sk_sndbuf
-
32
)
goto
out
;
skb
=
sock_alloc_send_skb
(
sk
,
len
,
msg
->
msg_flags
&
MSG_DONTWAIT
,
&
err
);
...
...
@@ -1324,7 +1324,7 @@ static int unix_dgram_sendmsg(struct kiocb *kiocb, struct socket *sock,
static
int
unix_stream_sendmsg
(
struct
kiocb
*
kiocb
,
struct
socket
*
sock
,
struct
msghdr
*
msg
,
in
t
len
)
struct
msghdr
*
msg
,
size_
t
len
)
{
struct
sock_iocb
*
siocb
=
kiocb_to_siocb
(
kiocb
);
struct
sock
*
sk
=
sock
->
sk
;
...
...
@@ -1447,7 +1447,7 @@ static void unix_copy_addr(struct msghdr *msg, struct sock *sk)
}
static
int
unix_dgram_recvmsg
(
struct
kiocb
*
iocb
,
struct
socket
*
sock
,
struct
msghdr
*
msg
,
in
t
size
,
struct
msghdr
*
msg
,
size_
t
size
,
int
flags
)
{
struct
sock_iocb
*
siocb
=
kiocb_to_siocb
(
iocb
);
...
...
@@ -1555,7 +1555,7 @@ static long unix_stream_data_wait(struct sock * sk, long timeo)
static
int
unix_stream_recvmsg
(
struct
kiocb
*
iocb
,
struct
socket
*
sock
,
struct
msghdr
*
msg
,
in
t
size
,
struct
msghdr
*
msg
,
size_
t
size
,
int
flags
)
{
struct
sock_iocb
*
siocb
=
kiocb_to_siocb
(
iocb
);
...
...
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