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
c2852cc4
Commit
c2852cc4
authored
Jan 08, 2004
by
Stephen Hemminger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[X25]: Use size_t for size in {send,recv}msg.
parent
7153ce0e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
net/x25/af_x25.c
net/x25/af_x25.c
+6
-4
No files found.
net/x25/af_x25.c
View file @
c2852cc4
...
@@ -910,7 +910,7 @@ int x25_rx_call_request(struct sk_buff *skb, struct x25_neigh *nb,
...
@@ -910,7 +910,7 @@ int x25_rx_call_request(struct sk_buff *skb, struct x25_neigh *nb,
}
}
static
int
x25_sendmsg
(
struct
kiocb
*
iocb
,
struct
socket
*
sock
,
static
int
x25_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
sock
*
sk
=
sock
->
sk
;
struct
x25_opt
*
x25
=
x25_sk
(
sk
);
struct
x25_opt
*
x25
=
x25_sk
(
sk
);
...
@@ -919,7 +919,8 @@ static int x25_sendmsg(struct kiocb *iocb, struct socket *sock,
...
@@ -919,7 +919,8 @@ static int x25_sendmsg(struct kiocb *iocb, struct socket *sock,
struct
sk_buff
*
skb
;
struct
sk_buff
*
skb
;
unsigned
char
*
asmptr
;
unsigned
char
*
asmptr
;
int
noblock
=
msg
->
msg_flags
&
MSG_DONTWAIT
;
int
noblock
=
msg
->
msg_flags
&
MSG_DONTWAIT
;
int
size
,
qbit
=
0
,
rc
=
-
EINVAL
;
size_t
size
;
int
qbit
=
0
,
rc
=
-
EINVAL
;
if
(
msg
->
msg_flags
&
~
(
MSG_DONTWAIT
|
MSG_OOB
|
MSG_EOR
))
if
(
msg
->
msg_flags
&
~
(
MSG_DONTWAIT
|
MSG_OOB
|
MSG_EOR
))
goto
out
;
goto
out
;
...
@@ -1085,13 +1086,14 @@ static int x25_sendmsg(struct kiocb *iocb, struct socket *sock,
...
@@ -1085,13 +1086,14 @@ static int x25_sendmsg(struct kiocb *iocb, struct socket *sock,
static
int
x25_recvmsg
(
struct
kiocb
*
iocb
,
struct
socket
*
sock
,
static
int
x25_recvmsg
(
struct
kiocb
*
iocb
,
struct
socket
*
sock
,
struct
msghdr
*
msg
,
in
t
size
,
struct
msghdr
*
msg
,
size_
t
size
,
int
flags
)
int
flags
)
{
{
struct
sock
*
sk
=
sock
->
sk
;
struct
sock
*
sk
=
sock
->
sk
;
struct
x25_opt
*
x25
=
x25_sk
(
sk
);
struct
x25_opt
*
x25
=
x25_sk
(
sk
);
struct
sockaddr_x25
*
sx25
=
(
struct
sockaddr_x25
*
)
msg
->
msg_name
;
struct
sockaddr_x25
*
sx25
=
(
struct
sockaddr_x25
*
)
msg
->
msg_name
;
int
copied
,
qbit
;
size_t
copied
;
int
qbit
;
struct
sk_buff
*
skb
;
struct
sk_buff
*
skb
;
unsigned
char
*
asmptr
;
unsigned
char
*
asmptr
;
int
rc
=
-
ENOTCONN
;
int
rc
=
-
ENOTCONN
;
...
...
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