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
322d620f
Commit
322d620f
authored
Jan 08, 2004
by
Stephen Hemminger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[DECNET]: Use size_t for size in {send,recv}msg.
parent
5831945d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
net/decnet/af_decnet.c
net/decnet/af_decnet.c
+8
-8
No files found.
net/decnet/af_decnet.c
View file @
322d620f
...
...
@@ -1659,13 +1659,13 @@ static int dn_data_ready(struct sock *sk, struct sk_buff_head *q, int flags, int
static
int
dn_recvmsg
(
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
dn_scp
*
scp
=
DN_SK
(
sk
);
struct
sk_buff_head
*
queue
=
&
sk
->
sk_receive_queue
;
in
t
target
=
size
>
1
?
1
:
0
;
in
t
copied
=
0
;
size_
t
target
=
size
>
1
?
1
:
0
;
size_
t
copied
=
0
;
int
rv
=
0
;
struct
sk_buff
*
skb
,
*
nskb
;
struct
dn_skb_cb
*
cb
=
NULL
;
...
...
@@ -1746,7 +1746,7 @@ static int dn_recvmsg(struct kiocb *iocb, struct socket *sock,
}
for
(
skb
=
queue
->
next
;
skb
!=
(
struct
sk_buff
*
)
queue
;
skb
=
nskb
)
{
int
chunk
=
skb
->
len
;
unsigned
int
chunk
=
skb
->
len
;
cb
=
DN_SKB_CB
(
skb
);
if
((
chunk
+
copied
)
>
size
)
...
...
@@ -1888,20 +1888,20 @@ static int dn_error(struct sock *sk, int flags, int err)
}
static
int
dn_sendmsg
(
struct
kiocb
*
iocb
,
struct
socket
*
sock
,
struct
msghdr
*
msg
,
in
t
size
)
struct
msghdr
*
msg
,
size_
t
size
)
{
struct
sock
*
sk
=
sock
->
sk
;
struct
dn_scp
*
scp
=
DN_SK
(
sk
);
in
t
mss
;
size_
t
mss
;
struct
sk_buff_head
*
queue
=
&
scp
->
data_xmit_queue
;
int
flags
=
msg
->
msg_flags
;
int
err
=
0
;
in
t
sent
=
0
;
size_
t
sent
=
0
;
int
addr_len
=
msg
->
msg_namelen
;
struct
sockaddr_dn
*
addr
=
(
struct
sockaddr_dn
*
)
msg
->
msg_name
;
struct
sk_buff
*
skb
=
NULL
;
struct
dn_skb_cb
*
cb
;
in
t
len
;
size_
t
len
;
unsigned
char
fctype
;
long
timeo
=
sock_sndtimeo
(
sk
,
flags
&
MSG_DONTWAIT
);
...
...
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