Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
9fdf7bc7
Commit
9fdf7bc7
authored
Mar 06, 2013
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Use socklen_t where appropriate.
parent
3f807e7a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
request.c
server/request.c
+1
-1
sock.c
server/sock.c
+3
-3
No files found.
server/request.c
View file @
9fdf7bc7
...
...
@@ -537,7 +537,7 @@ static void master_socket_poll_event( struct fd *fd, int event )
else
if
(
event
&
POLLIN
)
{
struct
sockaddr_un
dummy
;
unsigned
in
t
len
=
sizeof
(
dummy
);
socklen_
t
len
=
sizeof
(
dummy
);
int
client
=
accept
(
get_unix_fd
(
master_socket
->
fd
),
(
struct
sockaddr
*
)
&
dummy
,
&
len
);
if
(
client
==
-
1
)
return
;
fcntl
(
client
,
F_SETFL
,
O_NONBLOCK
);
...
...
server/sock.c
View file @
9fdf7bc7
...
...
@@ -285,9 +285,9 @@ static void sock_wake_up( struct sock *sock )
static
inline
int
sock_error
(
struct
fd
*
fd
)
{
unsigned
int
optval
=
0
,
optlen
;
unsigned
int
optval
=
0
;
socklen_t
optlen
=
sizeof
(
optval
);
optlen
=
sizeof
(
optval
);
getsockopt
(
get_unix_fd
(
fd
),
SOL_SOCKET
,
SO_ERROR
,
(
void
*
)
&
optval
,
&
optlen
);
return
optval
;
}
...
...
@@ -667,7 +667,7 @@ static int accept_new_fd( struct sock *sock )
*/
int
acceptfd
;
struct
sockaddr
saddr
;
unsigned
in
t
slen
=
sizeof
(
saddr
);
socklen_
t
slen
=
sizeof
(
saddr
);
acceptfd
=
accept
(
get_unix_fd
(
sock
->
fd
),
&
saddr
,
&
slen
);
if
(
acceptfd
==
-
1
)
{
...
...
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